powered by
Children born in Skellefteå, Sweden, 1850-1884, are followed fifteen years or until death or out-migration.
data(child)
A data frame with 26855 children born 1850-1884.
id
An identification number.
m.id
Mother's id.
sex
Sex.
socBranch
Working branch of family (father).
birthdate
Birthdate.
enter
Start age of follow-up, always zero.
exit
Age of departure, either by death or emigration.
event
Type of departure, death = 1, right censoring = 0.
illeg
Born out of marriage ("illegitimate")?
m.age
Mother's age.
The Skellefteå region is a large region in the northern part of Sweden.
fit <- coxreg(Surv(enter, exit, event) ~ sex + socBranch, data = child, coxph = TRUE) summary(fit)
Run the code above in your browser using DataLab