Displaying 1 result from an estimated 1 matches for "depvar_vec".
2009 Jun 22
1
Problem with storing a sequence of lmer() model fit into a list
...mail) really means?
Your kind help will be highly 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_...