lme.formula(fixed, random, cluster, data=sys.parent(), start, est.method = c("RML","ML"), re.block, re.structure = c("unstructured", "diagonal", "identity", "compsymm", "ar1"), re.paramtr = c("matrixlog","logcholesky", "cholesky", "spherical", "givens"), serial.structure = c("identity", "ar1", "ar1.continuous", "compsymm", "ar2", "ma1", "ma2", "arma11"), serial.covariate = NULL, serial.covariate.transformation = c("rank.within.cluster", "none", "round", "global.rank"), var.function = c("identity", "power", "expon", "cte.power", "cte.expon"), var.covariate = NULL, var.estimate = T, na.action, control)
NOTE: random effects are always assumed to have mean zero. A nonzero mean can be specified by including an identical term in the fixed effects part of the model.
(NOTE: unless a -1 is used in random, an (Intercept) term will be included as the first random effect). Elements in the re.block list are vectors containing the names or numbers of the random effects. Within a vector all elements have to be of the same type (i.e. all names or all numbers). By default all random effects are included in the same block.
Laird, N.M. and Ware, J.H. (1982). Random-Effects Models for Longitudinal Data. Biometrics 38, 963-974.
Pinheiro, J.C. and Bates., D.M. (1996). Unconstrained Parametrizations for Variance-Covariance Matrices Statistics and Computing to appear.
Box, G.E.P., Jenkins, G.M., and Reinsel G.C. (1994). Time Series Analysis: Forecasting and Control, 3rd Edition, Holden-Day.
Davidian, M. and Giltinan, D.M. (1995). Nonlinear Mixed Effects Models for Repeated Measurement Data. Chapman and Hall.
# Example from Lindstrom and Bates (1988) J.A.S.A. Ovary.fit <- lme(fixed = follicles ~ sin(2*pi*Time) + cos(2*pi*Time), random = ~sin(2*pi*Time) + cos(2*pi*Time), cluster = ~ Mare, data = Ovary, re.block = list(1, 2:3), re.structure = c("i","d"), serial.structure = "ar1", var.function = "power") Ovary.fit# Returns the following: Call: Fixed: follicles ~ sin(2 * pi * Time) + cos(2 * pi * Time) Random: ~ sin(2 * pi * Time) + cos(2 * pi * Time) Cluster: ~ mare Data: ovary.data
Variance/Covariance Components Estimate(s):
Block: 1 Structure: identity Standard Deviation(s) of Random Effect(s) (Intercept) 2.96746
Block: 2 Structure: diagonal Standard Deviation(s) of Random Effect(s) sin(2 * pi * Time) cos(2 * pi * Time) 1.27255 0.01309297
Cluster Residual Variance: 8.63962
Serial Correlation Structure: ar1 Serial Correlation Parameter(s): 0.5663131
Variance Function: power Variance Function Parameter(s): 0.0695264
Fixed Effects Estimate(s): (Intercept) sin(2 * pi * Time) cos(2 * pi * Time) 12.16773 -2.968204 -0.8580597
Number of Observations: 308 Number of Clusters: 11