Displaying 1 result from an estimated 1 matches for "regfam".
Did you mean:
regf32
2009 Jul 15
2
Differing Variable Length Inconsistencies in Random Effects/Regression Models
..."syll.length"
>
> vcdf<-data.frame(family, colms, peg.no, ec.length, syll.length)
>
> library(lme4)
> famfit<-lmer(peg.no~1 + (1|family), na.action=na.omit, vcdf)
> resfam<-residuals(famfit)
> for( i in 1:length(colms))
+ {
+ print ("Marker", i)
+ regfam<-abline(lm(resfam~i))
+ print(regfam)
+ }
This again gives me the error:
[1] "Marker"
Error in model.frame.default(formula = resfam ~ i, drop.unused.levels =
TRUE) :
variable lengths differ (found for 'i')
My variables all have missing values somewhere or the other. The...