confint.LmME: Confidence intervals for LmME model parameters

View source: R/LmME.R

confint.LmMER Documentation

Confidence intervals for LmME model parameters

Description

Confidence intervals for model parameters on their original scale, optionally consistent with the linear mixed-model specification. When as.lm = TRUE, only Wald CIs are available.

Usage

## S3 method for class 'LmME'
confint(
  object,
  parm = NULL,
  level = 0.95,
  as.lm = FALSE,
  pargroup = c("all", "fixef", "ranef"),
  type = c("Wald", "wald", "profile"),
  estimate = FALSE,
  ...
)

Arguments

object

An LmME object.

parm

Names of the parameters to extract.

level

Confidence level.

as.lm

Logical. If TRUE, return results consistent with the normal linear mixed model parameterization.

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

type

Type of the CI: either Wald or profile.

estimate

Logical, add the point estimates in a thrid column.

...

Optional parameters passed to confint.tramME

Value

A matrix with lower and upper bounds.

Examples

data("sleepstudy", package = "lme4")
fit <- LmME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
confint(fit) ## transformation model parameterization
confint(fit, as.lm = TRUE) ## LMM parameterization
confint(fit, as.lm = TRUE, pargroup = "fixef", estimate = TRUE)
confint(fit, as.lm = TRUE, parm = "(Sigma)") ## error SD

tramME documentation built on July 2, 2024, 5:07 p.m.