Data containing two sources of bias, a known confounder, and
100,000 observations. This data is obtained by sampling with replacement
with probability = S from df_om_sel_source
then removing the
columns Y and S. The resulting data corresponds to what a
researcher would see in the real-world: a misclassified outcome,
Ystar, and missing data for those not selected into the study
(S=0). As seen in df_om_sel_source
, the true, unbiased
exposure-outcome odds ratio = 2.
df_om_sel
A dataframe with 100,000 rows and 5 columns:
exposure, 1 = present and 0 = absent
misclassified outcome, 1 = present and 0 = absent
1st confounder, 1 = present and 0 = absent
2nd confounder, 1 = present and 0 = absent
3rd confounder, 1 = present and 0 = absent