Obtaining parameter estimates from a varComp object

Share:

Description

coef computes and/or extracts fixed-effect parameters, variance-component parameters, or ratios of variance component parameters to the error variance.

Usage

1
2
## S3 method for class 'varComp'
coef(object, what = c("fixed", "beta", "random", "varComp", "var.ratio", "tau"), ...)

Arguments

object

An object of class varComp

what

Character vector (only the first component will be used) specifying what parameters are requested. See details.

...

Not used.

Details

"fixed" (default) and "beta" are equivalent, requesting fixed-effect parameters to be returned.

"random" and "varComp" are equivalent, requesting variance components (including the error variance) to be returned.

"var.ratio" and "tau" are equivalent, requesting the ratio of variance components to the error variance to be returned.

Value

A named numeric vector of requested parameter estimates.

Author(s)

Long Qu

See Also

varComp

Examples

1
2
3
4
5
6
library(nlme)
data(Oxide)
vcf = varComp(Thickness~Source, Oxide, ~Lot/Wafer)
coef(vcf, 'varComp') 
coef(vcf )  ## same as coef(vcf, 'fixed')
coef(vcf, 'var.ratio')

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.