Extract the name of the endogenous variables from a nlme model.
.getIndexOmega2(object, ...)# S3 method for gls
.getIndexOmega2(object, param, attr.param, name.Y, cluster,
levels.cluster, data)
# S3 method for lme
.getIndexOmega2(object, param, attr.param, name.Y, cluster,
levels.cluster, data)
a gls
or lme
object.
[internal] Only used by the generic method.
[numeric vector] the mean and variance coefficients.
[character vector] the type of each coefficients (mean or variance).
[character] name of the endogenous variable.
[integer vector] the grouping variable relative to which the observations are iid.
Only required for gls
models with no correlation argument.
[data.frame] the data set.
A list containing:
index.Omega: [list of integer vector] For each cluster of observations, the index of the endogenous variable relative to each observation.
n.endogenous: [integer] the number of endogenous variables.
name.endogenous: [character vector] the name of the endogenous variables.
ref.group: [character vector] the levels of the variable defining the variance component in a generic covariance matrix.