Re: [R] regression coefficients

2016-02-17 Thread William Dunlap via R-help
> mod_c <- aov(dv ~ myfactor_c + Error(subject/myfactor_c), data=mydata_c) > > summary.lm(mod_c) > Error in if (p == 0) { : argument is of length zero> You called the lm method for summary() on an object of class c("aovlist", "listof"). You should not expect a method for one class to work on an

Re: [R] regression coefficients

2016-02-17 Thread Jim Lemon
Hi Cristiano, Might be the data you have for "dv". I don't seem to get the problem. dv<-sample(1:6,15,TRUE) subject<-factor(rep(paste("s",1:5,sep=""),each=3)) myfactor_c<-factor(rep(paste("f",1:3,sep=""),5)) mydata_c<-data.frame(dv,subject,myfactor_c) mod_c<-aov(dv~myfactor_c+Error(subject/myfacto

Re: [R] Regression coefficients

2013-04-26 Thread Jeff Newmiller
?coef There are many introductory texts on R... I recommend getting a few. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...