search for: matnoconsortgroomf

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

2011 Mar 08
1
Nesting random effects in lmer
Dear R experts, Could you please tell me how to nest random effects in an lmer model? Right now, my function looks like this: Full<-lmer(Consortship~((1|Male)+(1|Female))+MaleRank+MaleAge+MMGroom+MMAggrRankControl+FemaleRank+FemaleAge+MFAggrMating+GroomBirth07+MatNoConsortGroomF, family=poisson) However, a) I'm not sure if placing the two random effects (Male and Female) in parentheses actually achieves nesting, and b) I get an error message about variable MMGroom (Error in model.frame.default(formula = Consortship ~ ((1 + Male) + (1 + : invalid type (S4) for vari...