search for: ses1

Displaying 2 results from an estimated 2 matches for "ses1".

Did you mean: ses
2005 Nov 23
1
adding variables to a data set/combining two data sets
...ble. This second table also includes a variable called dacode and I have also used dacode for the rownames. I want to pull a number of the variables from the socioeconomic status data into the first table but I'm having no luck. Here's what I have tried so far: #first attempt grade6DA$ses1 <- sesdata$ses1[as.character(grade6DA$dacode)] All that this does is create a new column in the grade6DA data set and calls it ses1 but then fills it with NA. #second attempt grade6DA$ses1 <- sesdata$ses1[grade6DA$dacode] Neither approach has worked so I've ended up combining th...
2009 Jun 22
1
Problem with storing a sequence of lmer() model fit into a list
...hly appreciated! -Sean #the following for-loop intends to store lmer() random poisson model output into list (fit.list), it does not work --------------------------------------------------------------------------- fit.list<-NULL for (i in seq_along(depvar_vec)) { #I found that s_sex, ses1 and race are not useful fit_i <- lmer(as.formula(gen.ranpoisson.fml.jh(depvar_vec[i], offsetvar ,factorindepvars, nonfactorindepvars ,ranintvar )), family=quasipoisson(link="log"),verbose=F, data=indf) tmp_i<-paste('ranpoi_', depvar_vec[i], sep='')...