Learn R Programming

varComp (version 0.2-0)

coef.varComp: Obtaining parameter estimates from a varComp object

Description

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

Usage

# S3 method for 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.

Value

A named numeric vector of requested parameter estimates.

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.

See Also

varComp

Examples

Run this code
# NOT RUN {
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')

# }
# NOT RUN {
<!-- %fixef(vcf) -->
# }

Run the code above in your browser using DataLab