Learn R Programming

spsurv (version 1.0.0)

residuals.spbp: BP based models residuals.

Description

Residuals for a fitted spbp model.

Usage

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

Arguments

object

an object of class `spbp` result of a spbp fit.

type

type of residuals, default is "cox-snell"

...

further arguments passed to or from other methods

See Also

spbp.

Examples

Run this code
# NOT RUN {
library("spsurv")
data("veteran")

fit <- bpph(Surv(time, status) ~ karno + factor(celltype),
data = veteran)

residuals(fit)

# }

Run the code above in your browser using DataLab