Learn R Programming

tramME (version 0.1.3)

lpterms.tramME: Get inidvidual terms of the linear predictor and their confidence intervals

Description

term can be variable groups (baseline/interacting or shift) or names of variables.

Usage

# S3 method for tramME
lpterms(
  object,
  newdata = model.frame(object)[, -1L],
  term = c("baseline", "shift"),
  type = c("trafo", "distribution", "survivor", "cumhazard"),
  confidence = c("none", "interval", "band"),
  level = 0.95,
  K = 50,
  ...
)

Arguments

object

A tramME object.

newdata

A data.frame containing the values at which the functions are evaluated.

term

The names or identifiers of the terms we want to evaluate.

type

The scale on which the functions are evaluated.

confidence

Pointwise confidence interval or confidence band.

level

Confidence level.

K

Integer, number of points of the grid the function is evaluated on.

...

Additional parameters (for consistency with generic)

Value

Matrix or list of matrices containing the point estimates and the confidence intervals.

Examples

Run this code
# NOT RUN {
data("sleepstudy", package = "lme4")
fit <- LmME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
tr <- lpterms(fit, type = "distribution", confidence = "interval", K = 100)
# }

Run the code above in your browser using DataLab