Learn R Programming

tramME (version 0.0.1)

confint.LmME: 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 LmME
confint(object, parm = NULL, level = 0.95,
  as.lm = FALSE, pargroup = c("all", "fixef", "shift", "baseline",
  "ranef"), type = c("Wald", "wald", "profile"), estimate = FALSE,
  pmatch = FALSE, ...)

Arguments

object

A fitted LmME object.

parm

The indeces or names of the parameters of interest. See in details.

level

Confidence level.

as.lm

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

pargroup

fixef: fixed-effects, shift: shift parameters, all: fixed effects and variance component parameters, baseline: parameters of the baseline transformation function, ranef: variance components parameters.

type

Type of the CI: either Wald or profile.

estimate

Logical, add the point estimates in a thrid column

pmatch

Logical. If TRUE, partial name matching is allowed.

...

Optional parameters passed to confint.tramME

Value

A matrix with lower and upper bounds.

Examples

Run this code
# NOT RUN {
data("sleepstudy", package = "lme4")
fit <- LmME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
confint(fit) ## transformation model parametrization
confint(fit, as.lm = TRUE) ## LMM parametrization
confint(fit, as.lm = TRUE, pargroup = "fixef", estimate = TRUE)
confint(fit, as.lm = TRUE, parm = "(Sigma)") ## error SD
# }

Run the code above in your browser using DataLab