nlme (version 3.1-86)

coef.modelStruct: Extract modelStruct Object Coefficients

Description

This method function extracts the coefficients associated with each component of the modelStruct list.

Usage

## S3 method for class 'modelStruct':
coef(object, unconstrained, \dots)
## S3 method for class 'modelStruct':
coef(object, \dots) <- value

Arguments

Value

a vector with all coefficients corresponding to the components of object.

SIDE EFFECTS

On the left side of an assignment, sets the values of the coefficients of object to value. Object must be initialized (using Initialize) before new values can be assigned to its coefficients.

See Also

Initialize

Examples

Run this code
lms1 <- lmeStruct(reStruct = reStruct(pdDiag(diag(2), ~age)),
   corStruct = corAR1(0.3))
coef(lms1)

Run the code above in your browser using DataCamp Workspace