Learn R Programming

nlme (version 3.1-31)

reStruct: Random Effects Structure

Description

This function is a constructor for the reStruct class, representing a random effects structure and consisting of a list of pdMat objects, plus a settings attribute containing information for the optimization algorithm used to fit the associated mixed-effects model.

Usage

reStruct(object, pdClass, REML, data)

Arguments

Value

an object inheriting from class reStruct, representing a random effects structure.

See Also

pdMat, lme, groupedData

Examples

Run this code
data(Pixel)
rs1 <- reStruct(list(Dog = ~day, Side = ~1), data = Pixel)
rs1

Run the code above in your browser using DataLab