coef.varComp: Obtaining parameter estimates from a varComp object

Description Usage Arguments Details Value Author(s) See Also Examples

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')


Search within the varComp package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.