lme(formula, data, random, ...)
~
operator and the terms, separated by +
operators, on
the right.formula
, random
, correlation
, weights
, and
subset
. By default the variables are taken from the
environment from which ~x1+...+xn | g1/.../gm
, with x1+...+xn
specifying the model for the random effects and g1/.../gm
the
grouping structure (m
mlme-class{lme}
object.lme1
is in the development
versions of this package. The lme1
function has the same
argument sequence as lme
but produces an object with an
lmeRep
representation of the model. The object
produced by lme
uses the ssclme
representation.
Additional standard arguments to model-fitting functions can be passed
to lme
or lme1
.
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]lme-class
, lm
data(bdf)
fm <- lme(langPOST ~ IQ.ver.cen + avg.IQ.ver.cen, data = bdf,
random = ~ IQ.ver.cen | schoolNR)
summary(fm)
Run the code above in your browser using DataLab