Learn R Programming

spsurv (version 1.1.0)

model.matrix.spbp: Model.matrix method for fitted spbp models

Description

Model.matrix of a fitted spbp model.

Usage

# S3 method for spbp
model.matrix(object, ...)

Value

The model matrix.

Arguments

object

an object of class `spbp`, see spbp.

...

arguments passed to parent method.

See Also

Examples

Run this code

library("spsurv")
data("veteran", package = "survival")

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

model.matrix(fit)

Run the code above in your browser using DataLab