# load libraries for models and data
library(survival)
# fit model
afit <- aareg(
Surv(time, status) ~ age + sex + ph.ecog,
data = lung,
dfbeta = TRUE
)
# summarize model fit with tidiers
tidy(afit)
Run the code above in your browser using DataLab