Learn R Programming

EMGCR (version 0.2.0)

residuals.MCR: Compute residuals for MCR model

Description

This function computes Global Cox-Snell and randomized quantile residuals for objects of class MCR.

Usage

# S3 method for MCR
residuals(object, type = c("cox-snell", "quantile"), ...)

Value

A numeric vector of residuals.

Arguments

object

An object of class MCR, typically returned from MCRfit.

type

Type of residual.

...

Additional arguments (not used).

Examples

Run this code
data(liver)
names(liver)

model <- MCRfit(
 survival::Surv(time, status) ~ age + medh + relapse + grade | sex + age + medh + grade,
 data = liver
)
summary(residuals(model,type="quantile"))

Run the code above in your browser using DataLab