A data frame with 2372 rows and 14 variables with diabetes status
diabetes
and mortality status endpoint
. For the purpose
of demonstrate, assume that we are interested in the association
between diabetes
and endpoint
. Other variables are
considered as possible confounders. The purposes of this dataset
is to illustrate those functions in chest package only. Therefore,
we assume it is a cohort design for Cox Proportional Hazard regression,
and a case-control design for logistic regression.
diab_df
A data frame with 2372 rows and 14 variables:
diabetes status 1: with diabetes 0: without diabetes
mortality status 1: reached end point, and 0: survived
Age, in years
sex, 1: male, 2: Female
Body mass index
marital status 1: married, 0: not
smoking status 1: smoker, 0: non-smoker
cardiovascular disease 1: yes 0: no
cancer 1: yes, 0: no
education 1: high, 0: low
income 1: high, 0: low
time (age) at the start of the follow-up
time (age) at the end of the follow-up
matched set id, for conditional logistic regression