search for: indepvec

Displaying 1 result from an estimated 1 matches for "indepvec".

Did you mean: indepvar
2009 Jun 22
1
Problem with storing a sequence of lmer() model fit into a list
...[tmp_i]] <- fit_i I tried the following example which stores glm() model fit without a problem. #the following code can store glm() model fit into a list --------------------------------------------------- x1<-runif(200) x2<-rnorm(200) y<-x1+x2 testdf<-data.frame(y=y, x1=x1, x2=x2) indepvec<-c("x1","x2") fit.list<-NULL fit_1<-glm(y~x1,data=testdf) fit_2<-glm(y~x2,data=testdf) fit.list[[paste('fit_',indepvec[1],sep='')]]<-fit_1 fit.list[[paste('fit_',indepvec[12],sep='')]]<-fit_2 -------------------------------------...