Learn R Programming

tramME (version 0.0.1)

trafo.tramME: Get the baseline transformation function and its confidence interval

Description

For stratified models, it returns a list of data frames for each stratum.

Usage

# S3 method for tramME
trafo(object, newdata = NULL, type = c("trafo",
  "distribution", "survivor", "cumhazard"), confidence = c("none",
  "interval", "band", "asymptotic"), level = 0.95, K = 50, ...)

Arguments

object

A fitted tramME object.

newdata

Values of the interacting terms to be used.

type

The scale on which the transformation function is evaluated.

confidence

Pointwise confidence interval or confidence band.

level

Confidence level.

K

Integer, number of points in 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 <- trafo(fit, type = "distribution", confidence = "interval", K = 100)
# }

Run the code above in your browser using DataLab