A small, fully synthetic dataset for demonstrating the goodness-of-fit and
calibration battery. It was generated reproducibly (see
data-raw/make_gof_demo.R) from a logistic data-generating process whose
true linear predictor includes a quadratic term in (standardized) age.
A model that regresses outcome on age linearly (together with
bmi, sex and treatment) is therefore mildly
misspecified, through a smooth, low-dimensional calibration distortion. This
is the regime in which the directed Ebrahim–Farrington / EDGE test
(edge.gof, def.gof) is designed to have more power
than classical omnibus tests such as Hosmer–Lemeshow.
Format
A data frame with 800 rows and 5 variables:
- outcome
binary response, 0/1 (event rate about 0.27).
- age
continuous covariate, years (range about 20–70). The true model depends on age quadratically.
- bmi
continuous covariate, body mass index in kg/m^2.
- sex
binary covariate, 0 = female, 1 = male.
- treatment
binary covariate, 0 = control, 1 = treated.