varcomp_vcov: Estimated sampling variance-covariance of variance component...

Description Usage Arguments Value Examples

View source: R/information-matrices.R

Description

Estimate the sampling variance-covariance of variance component parameters from a fitted linear mixed effects model (lmeStruct object) or generalized least squares model (glsStruct object) using the inverse Fisher information.

Usage

1
varcomp_vcov(mod, type = "expected")

Arguments

mod

Fitted model of class lmeStruct or glsStruct.

type

Type of information matrix. One of "expected" (the default), "observed", or "average".

Value

Sampling variance-covariance matrix corresponding to variance component parameters of mod.

Examples

1
2
3
4
5
6
7
library(nlme)
data(Bryant2016)
Bryant2016_RML <- lme(fixed = outcome ~ treatment,
                      random = ~ 1 | school/case,
                      correlation = corAR1(0, ~ session | school/case),
                      data = Bryant2016)
varcomp_vcov(Bryant2016_RML, type = "expected")

lmeInfo documentation built on Feb. 2, 2021, 5:12 p.m.