Learn R Programming

tramME (version 0.1.3)

residuals.tramME: Residuals of a tramME model

Description

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

Usage

# S3 method for 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

Run this code
# NOT RUN {
library("survival")
fit <- SurvregME(Surv(time, status) ~ rx + (1 | litter), data = rats)
resid(fit)
# }

Run the code above in your browser using DataLab