model.matrix.spbp {spsurv}R Documentation

Model.matrix method for fitted spbp models

Description

Model.matrix of a fitted spbp model.

Usage

## S3 method for class 'spbp'
model.matrix(
  object,
  data = eval(object$call$data, envir = parent.frame()),
  ...
)

Arguments

object

an object of class 'spbp', see spbp.

data

data.frame object.

...

arguments inherent from model.matrix.

Value

The explanatory variables matrix.

See Also

spbp, model.matrix

Examples



library("spsurv")
data("veteran")

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

model.matrix(fit)


[Package spsurv version 1.0.0 Index]