confint.tramME: Confidence intervals for tramME model parameters

confint.tramMER Documentation

Confidence intervals for tramME model parameters

Description

Confidence intervals for model parameters on their original scale. Either Wald CI or profile CI by root finding. Multicore computations are supported in the case of profile confidence intervals, but snow support is yet to be implemented.

Usage

## S3 method for class 'tramME'
confint(
  object,
  parm = NULL,
  level = 0.95,
  pargroup = c("all", "fixef", "shift", "baseline", "ranef", "smooth"),
  type = c("Wald", "wald", "profile"),
  estimate = FALSE,
  pmatch = FALSE,
  parallel = c("no", "multicore", "snow"),
  ncpus = getOption("profile.ncpus", 1L),
  ...
)

Arguments

object

A tramME object.

parm

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

level

Confidence level.

pargroup

The name of the parameter group to return:

  • all: All parameters.

  • fixef: Fixed effects parameters.

  • shift: Shift parameters.

  • baseline: Parameters of the baseline transformation function.

  • ranef: Variance components parameters.

  • smooth: Paramaters that belong to the smooth shift terms (both FE and smoothing 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.

parallel

Method for parallel computation.

ncpus

Number of cores to use for parallel computation.

...

Optional parameters.

Value

A matrix with lower and upper bounds.

Examples

data("sleepstudy", package = "lme4")
fit <- BoxCoxME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
confint(fit)
confint(fit, pargroup = "shift", estimate = TRUE)
exp(confint(fit, 1:2, pargroup = "ranef")) ## CIs for the SDs of the REs

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