powered by
A small simulated 2×2 crossover trial dataset with a continuous outcome.
xo_c
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 continuous outcome
data(xo_c) str(xo_c) head(xo_c)
Run the code above in your browser using DataLab