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

Description Usage Arguments Value Examples

View source: R/trafo.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'tramME'
trafo(
  object,
  newdata = NULL,
  type = c("trafo", "distribution", "survivor", "cumhazard"),
  confidence = c("none", "interval", "band"),
  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

1
2
3
data("sleepstudy", package = "lme4")
fit <- LmME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
tr <- trafo(fit, type = "distribution", confidence = "interval", K = 100)

tramME documentation built on Aug. 16, 2021, 5:08 p.m.