search for: fm2gen

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

Did you mean: fm1gen
2011 Apr 18
1
covariance matrix: a erro and simple mixed model question, but id not know answer sorry
...equire("lme4"); fm1Gen <- lmer(yvar ~ X + gen +(1|block), data= dataf) # Question 1: should I consider X fixed or random Error in model.frame.default(data = dataf, formula = yvar ~ X + gen + : variable lengths differ (found for 'gen') A tried nlme too. require(nlme) fm2Gen <- lme(yvar ~ X + gen, random= ~ 1|block, data= dataf) Error in model.frame.default(formula = ~yvar + X + gen + block, data = list( : variable lengths differ (found for 'gen') # similar error Question 2: How can get I covariance matrix between X1 and X2 either using lme4 or lmer....