vcov.LmME: Get the variance-covariance matrix of the parameters of an...

View source: R/LmME.R

vcov.LmMER Documentation

Get the variance-covariance matrix of the parameters of an LmME model

Description

Get the variance-covariance matrix of the parameters of an LmME model

Usage

## S3 method for class 'LmME'
vcov(
  object,
  as.lm = FALSE,
  parm = NULL,
  pargroup = c("all", "fixef", "ranef"),
  ...
)

Arguments

object

A fitted LmME object.

as.lm

If TRUE, return the covariance matrix of the same parametrization as used by lmer.

parm

Names of the parameters to extract.

pargroup

The name of the parameter group to extract. With as.lm = FALSE, the available options are described in confint.tramME. When as.lm = TRUE, the following options are available:

  • all: Fixed effects and variance components parameters.

  • fixef: Fixed effects parameters (including FE parameters of the smooth terms).

  • ranef: Variance components parameters (including the smoothing parameters of the random effects).

...

Optional parameters passed to confint.tramME

Value

A numeric covariance matrix.

Examples

data("sleepstudy", package = "lme4")
fit <- LmME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
vcov(fit) ## transformation model parametrization
vcov(fit, as.lm = TRUE) ## LMM parametrization
vcov(fit, as.lm = TRUE, pargroup = "fixef") ## cov of fixed effects

tramME documentation built on July 9, 2023, 7:10 p.m.