| mort | R Documentation | 
Males born in the years 1800-1820 and surving at least 40 years in the parish Skellefteå in northern Sweden are followed from their fortieth birthday until death or the sixtieth birthday, whichever comes first.
data(mort)A data frame with 2058 observations on the following 6 variables.
idPersonal identification number.
enterStart of duration. Measured in years since the fortieth birthday.
exitEnd of duration. Measured in years since the fortieth birthday.
eventa logical vector indicating death at end of interval.
birthdateThe birthdate in decimal form.
sesSocio-economic status, a factor with levels
lower, upper
The interesting explanatory
covariate is ses (socioeconomic status), which is a
time-varying covariate. This explains why several individuals are
representated by more than one record each. Left trucation and right
censoring are introduced this way.
This data set is also known, and accessible,  as male.mortality
Data is coming from The Demographic Data Base, Umea University, Umeå, Sweden.
https://www.umu.se/enheten-for-demografi-och-aldrandeforskning/
data(mort)
fit <- coxreg(Surv(enter, exit, event) ~ ses, data = mort)
summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.