[R] lme, fixed and random

Spencer Graves spencer.graves at pdf.com
Mon Aug 15 04:31:28 CEST 2005


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:

> 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
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

-- 
Spencer Graves, PhD
Senior Development Engineer
PDF Solutions, Inc.
333 West San Carlos Street Suite 700
San Jose, CA 95110, USA

spencer.graves at pdf.com
www.pdf.com <http://www.pdf.com>
Tel:  408-938-4420
Fax: 408-280-7915




More information about the R-help mailing list