Export mean and variance coefficients
from a lm
, gls
, or lme
object.
.coef2(object)# S3 method for lm
.coef2(object)
# S3 method for gls
.coef2(object)
# S3 method for lme
.coef2(object)
a lm
, gls
or lme
object.
[character] the name of the endogenous variable. Used to name certain variance parameters.
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.
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.