[R] Newbie with lme

Douglas Bates bates at stat.wisc.edu
Tue Jun 8 16:32:36 CEST 1999


Jordan Howarth <jordan.howarth at tag.csiro.au> writes:

> Using Version 0.64.1 (May 8, 1999) 

> Last time I used a stats package it was SAS so I have been
> struggling with the paradigm shift to R in particular the syntax for
> using lme (linear mixed effects model). My data relates to growth
> data and is set up with vectors for ID, several explanatory
> variables and the response variable. In contrast, the data object
> used in the lme examples, ie. Orthodont.R, consists of structure
> statements. My previous experience with SAS is obviously causing me
> problems. At the risk of asking somebody hold my hand could that
> somebody walk me through lme. Like I said "Newbie" ...

The Orthodont.R file is the result of creating a data frame,
converting it to a groupedData object, and then using "dump" to get a
portable version of the result.  In most cases people would bring
their data into R using read.table or some other function like that,
then use the groupedData function to create a groupedData object.
Alternatively, you can use a data frame as the data argument to lme.
In that case you have to specify the grouping in the "random"
argument.

I would volunteer to walk you through an lme analysis but I am leaving
this afternoon for a conference.  If you can wait until next week, I
can correspond with you then.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list