Model.matrix of a fitted spbp
model.
# S3 method for spbp
model.matrix(
object,
data = eval(object$call$data, envir = parent.frame()),
...
)
an object of class `spbp`, see spbp
.
data.frame object.
arguments inherent from model.matrix
.
The explanatory variables matrix.
# NOT RUN {
library("spsurv")
data("veteran")
fit <- bpph(Surv(time, status) ~ karno + factor(celltype),
data = veteran)
model.matrix(fit)
# }
Run the code above in your browser using DataLab