model.matrix.survstan: Model.matrix method for survstan models

View source: R/model.matrix.R

model.matrix.survstanR Documentation

Model.matrix method for survstan models

Description

Reconstruct the model matrix for a survstan model.

Usage

## S3 method for class 'survstan'
model.matrix(object, ...)

Arguments

object

an object of the class survstan.

...

further arguments passed to or from other methods.

Value

The model matrix (or matrices) for the fit.

Examples


library(survstan)
fit <- aftreg(Surv(futime, fustat) ~ ecog.ps + rx, data = ovarian, baseline = "weibull", init = 0)
model.matrix(fit)



survstan documentation built on May 29, 2024, 8:41 a.m.