Learn R Programming

lavaSearch2 (version 1.4)

getVarCov2-internal: Reconstruct the Marginal Variance Covariance Matrix from a nlme Model

Description

Reconstruct the marginal variance covariance matrix from a nlme model.

Usage

.getVarCov2(object, ...)

# S3 method for gls .getVarCov2(object, param, attr.param, name.endogenous, n.endogenous, ref.group, ...)

# S3 method for lme .getVarCov2(object, param, attr.param, ...)

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

[character vector] name of each repetition of the endogenous variable.

n.endogenous

[integer >0] number of repetitions of the endogenous variable.

ref.group

[character vector] the levels of the variable defining the variance component in a generic covariance matrix.

Value

[matrix] the marginal variance covariance matrix for a full sample.