Learn R Programming

lavaSearch2 (version 1.5.6)

coef2-internal: Export Mean and Variance Coefficients

Description

Export mean and variance coefficients from a lm, gls, or lme object.

Usage

.coef2(object)

# S3 method for lm .coef2(object)

# S3 method for gls .coef2(object)

# S3 method for lme .coef2(object)

Value

A numeric vector named with the names of the coefficient with three attributes:

  • mean.coef: the name of the mean coefficients.

  • var.coef: the name of the variance coefficients.

  • cor.coef: the name of the correlation coefficients.

Arguments

object

a lm, gls or lme object.

name.Y

[character] the name of the endogenous variable. Used to name certain variance parameters.

Details

The variance coefficients that are exported are the residual variance of each outcome. This is \(\sigma^2\) for the first one and \(k^2 \sigma^2\) for the remaining ones.