model.matrix.survstan | R Documentation |
Reconstruct the model matrix for a survstan model.
## S3 method for class 'survstan'
model.matrix(object, ...)
object |
an object of the class survstan. |
... |
further arguments passed to or from other methods. |
The model matrix (or matrices) for the fit.
library(survstan)
fit <- aftreg(Surv(futime, fustat) ~ ecog.ps + rx, data = ovarian, baseline = "weibull", init = 0)
model.matrix(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.