model.matrix.spbp {spsurv} | R Documentation |
Model.matrix of a fitted spbp
model.
## S3 method for class 'spbp'
model.matrix(
object,
data = eval(object$call$data, envir = parent.frame()),
...
)
object |
an object of class 'spbp', see |
data |
data.frame object. |
... |
arguments inherent from |
The explanatory variables matrix.
library("spsurv")
data("veteran")
fit <- bpph(Surv(time, status) ~ karno + factor(celltype),
data = veteran)
model.matrix(fit)