search for: fm1gen

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

Did you mean: amgen
2011 Apr 18
1
covariance matrix: a erro and simple mixed model question, but id not know answer sorry
...t;- data.frame(as.factor(block), as.factor(gen), as.factor(X), yvar ) My objective to estimate variance-covariance between two variables X1 and X2. Means that I need to fit something like unstructure (UN) covariance structure. Question 1: I got the following error require("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,...