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

[R] regression coefficients

2016-02-17 Thread Cristiano Alessandro
Dear all, I am trying to visualize the regression coefficients of the linear model that the function aov() implicitly fits. Unfortunately the function summary.lm() throws an error I do not understand. Here is a toy example: dv <- c(1,3,4,2,2,3,2,5,6,3,4,4,3,5,6); subject <- factor(c("s1","s1

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...

[R] Regression coefficients

2013-04-26 Thread Preetam Pal
Hi all, I have run a ridge regression as follows: reg=lm.ridge(final$l~final$lag1+final$lag2+final$g+final$g+final$u, lambda=seq(0,10,0.01)) Then I enter : select(reg) and it returns: modified HKB estimator is 19.3409 modified L-W estimator is 36.18617