Initialize corStruct Object
Usage
initialize(object, data, ...)
Arguments
object
|
an object inheriting from class corStruct
representing a correlation structure.
|
data
|
a data frame in which to evaluate the variables defined in
formula(object) .
|
...
|
this argument is included to make this method compatible
with the generic.
|
Description
This method initializes object
by evaluating its associated
covariate(s) and grouping factor, if any is present, in data
,
calculating various dimensions and constants used by optimization
algorithms involving corStruct
objects (see the appropriate
Dim
method documentation), and assigning initial values for
the coefficients in object
, if none were present.Value
an initialized object with the same class as object
representing a correlation structure.Author(s)
Jose Pinheiro and Douglas BatesSee Also
Dim.corStruct
Examples
library(lme)
data(Orthodont)
cs1 <- corAR1(form = ~ 1 | Subject)
cs1 <- initialize(cs1, data = Orthodont)