Re: [R] Differing Variable Length Inconsistencies in Random Effects/Regression Models

2009-07-15 Thread Mark Difford
Perhaps I should have added the following: To see that it "works," run the following: famfit<-lmer(peg.no~1 + (1|family), na.action=na.exclude, vcdf) resfam<-residuals(famfit) for( i in 1:length(colms)) { print(coef(lm(resfam~colms[,i]))) } Regards, Mark. A Singh wrote: > > > Dear All, >

Re: [R] Differing Variable Length Inconsistencies in Random Effects/Regression Models

2009-07-15 Thread Mark Difford
Hi Aditi, Parts of _your_ code for the solution offered by Jerome Goudet are wrong; see my comments. > famfit<-lmer(peg.no~1 + (1|family), na.action=na.omit, vcdf) ## use: > na.action=na.exclude > resfam<-residuals(famfit) > for( i in 1:length(colms)) + { + print ("Marker", i) + regfam<-ab

[R] Differing Variable Length Inconsistencies in Random Effects/Regression Models

2009-07-15 Thread A Singh
Dear All, I am quite new to R and am having a problem trying to run a linear model with random effects/ a regression- with particular regard to my variable lengths being different and the models refusing to compute any further. The codes I have been using are as follows: vc<-read.table("P:\