Learn R Programming

lavaSearch2 (version 1.5.6)

getIndexOmega2-internal: Extract the name of the endogenous variables

Description

Extract the name of the endogenous variables from a nlme model.

Usage

.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 )

Value

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.

Arguments

object

a gls or lme object.

...

[internal] Only used by the generic method.

param

[numeric vector] the mean and variance coefficients.

attr.param

[character vector] the type of each coefficients (mean or variance).

name.Y

[character] name of the endogenous variable.

cluster

[integer vector] the grouping variable relative to which the observations are iid. Only required for gls models with no correlation argument.

data

[data.frame] the data set.