residuals.tramME: Residuals of a tramME model

Description Usage Arguments Examples

Description

Calculates the score residuals of an intercept term fixed at 0.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'tramME'
residuals(
  object,
  param = c(coef(object, with_baseline = TRUE, fixed = FALSE), varcov(object, as.theta
    = TRUE)),
  newdata = NULL,
  ...
)

Arguments

object

A tramME object.

param

An optional vector of parameter values in the structure (beta, theta).

newdata

An optional data.frame.

...

Optional arguments (currently ignored).

Examples

1
2
3
library("survival")
fit <- SurvregME(Surv(time, status) ~ rx + (1 | litter), data = rats)
resid(fit)

tramME documentation built on April 14, 2021, 1:06 a.m.