extract_nlme_variances: extract_nlme_variances

Description Usage Arguments Details Value Examples

View source: R/extract_nlme_variances.R

Description

Because nlme won't do it for you.

Usage

1

Arguments

model

The nlme model object

Details

For models with heterogeneous variance, i.e. that contain something like varIdent(form = ~1|Group), nlme returns a result in the summary regarding the variances that many do not know what to do with, nor likely would be what they would want to report. I rarely do these models with nlme, and have only played around with the varIdent case. This function ' will save me a little trouble in demos I do, but I have no plans to do any more with it.

Value

A vector of the estimates on the variance scale.

Examples

1
2
3
4
5
library(nlme)
fm2 <- lme(distance ~ age + Sex, data = Orthodont, random = ~ 1|Subject,
weights=varIdent(form = ~1|Sex))
summary(fm2)
extract_nlme_variances(fm2)

mclark--/lazerhawk documentation built on July 17, 2018, 3:11 a.m.