Skip to contents

Estimation

The streg function is the main function of this package, which allows fitting parametric proportional hazards survival models. Supported models are the exponential, the Weibull, and the Gompertz model.

streg()
Fitting Parametric Proportional Hazards Survival Models
print(<streg>)
Print streg Fits

Predictions

The predict.streg method has been implemented to obtain predictions from a fitted streg model. Currently you can obtain the linear predictor, the hazard function, and the survival probability. Out of sample predictions and prediction standard errors are supported out-of-the-box.

predict(<streg>)
Predict Method for Parametric Proportional Hazards Survival Models

Datasets

streg comes with some bundled datasets:

cancer2
Patient Survival in Drug Trial
hip
Hip Fracture Study
kva
Generator Experiment

Full documentation

The remaining functions bundled with the {streg} package are documented here:

coef(<streg>) `coef<-`(<streg>)
Extract Model Coefficients
vcov(<streg>)
Calculate Variance-Covariance Matrix for a Fitted Model Object
logLik(<streg>)
Extract Log-Likelihood
is.streg() is.summary.streg()
Parametric Survival Models
nobs(<streg>)
Extract the Number of Observations from a Fit.