The individual generalized linear mixed-effects model components of the
glmeStruct
list are initialized.
USAGE:
initialize(object, data, groups, conLin, control)
REQUIRED ARGUMENTS:
object
an object inheriting from class
glmeStruct,
representing a list of generalized linear mixed-effects model components,
such as
reStruct,
corStruct,
and
varFunc objects.
data
a data frame in which to evaluate the variables defined in
formula(object).
groups
a data frame with the grouping factors corresponding to
the glme model associated with
object as columns,
sorted from innermost to outermost grouping level.
conLin
an optional condensed linear model object,
consisting of a list with components
"Xy",
corresponding to a regression matrix (
X)
combined with a response vector (
y),
and
"logLik",
corresponding to the log-likelihood of the underlying glme model.
Defaults to
attr(object, "conLin").
control
an optional list with control parameters for the
initialization and optimization algorithms used in
glme.
Defaults to
list(niterEM=20, gradHess=TRUE),
implying that 20 EM iterations are to be used in the derivation of
initial estimates for the coefficients
of the
reStruct component
of
object
and, if possible, numerical gradient vectors
and Hessian matrices for the log-likelihood function are
to be used in the optimization algorithm.
VALUE:
an
glmeStruct object similar
to
object,
but with initialized model components.