# load libraries for models and data
library(survival)
# fit model
sexpfit <- survexp(
futime ~ 1,
rmap = list(
sex = "male",
year = accept.dt,
age = (accept.dt - birth.dt)
),
method = "conditional",
data = jasa
)
# summarize model fit with tidiers
tidy(sexpfit)
glance(sexpfit)
Run the code above in your browser using DataLab