powered by
A small simulated 2×2 crossover trial dataset with a binary outcome.
xo_b
A tibble/data.frame with one row per subject and the following columns:
Integer cluster ID (hospital)
Integer period (1 or 2)
Integer subject index within cluster-period
Treatment indicator (0 = control, 1 = treatment)
Continuous covariates
Binary covariate (0/1)
Dummy variables for a 3-level categorical covariate (level 1 is reference)
Observed binary outcome (0/1)
data(xo_b) str(xo_b) head(xo_b)
Run the code above in your browser using DataLab