Skip to content

lme, fixed and random

2 messages · Erin Hodgess, Spencer Graves

#
Dear R People:

I need to set up an lme.  I have logratio as my response var,
range, and I(range^2) as the fixed variables.

The random effects vars are xa1 through xa24.

How do I set up the lme statement, please?

I tried with 
lme(logratio ~ range + I(range^2), random=fmla)

is an as.formula statement with the xa1 throught xa24 var with a leading

Any suggestions, please


Thanks,
Erin Hodgess
mailto: hodgess at gator.uhd.edu
#
lme(logratio ~ range + I(range^2), random=~1|fmla, 
data=data.frame.contianing.range.and.fmla)

spencer graves
p.s.  I highly recommend Pinheiro and Bates (2000) Mixed-Effects Models 
in S and S-Plus (Springer).
Erin Hodgess wrote: