Learn R Programming

tramME (version 0.0.1)

confint.tramME: 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 tramME
confint(object, parm = NULL, level = 0.95,
  pargroup = c("all", "fixef", "shift", "baseline", "ranef"),
  type = c("Wald", "wald", "profile"), estimate = FALSE,
  pmatch = FALSE, parallel = c("no", "multicore", "snow"),
  ncpus = getOption("profile.ncpus", 1L), ...)

Arguments

object

A fitted tramME object.

parm

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

level

Confidence level.

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.

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

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab