Learn R Programming

MRStdLCRT (version 0.1.0)

xo_b: Example crossover cluster-randomized trial dataset with binary outcome

Description

A small simulated 2×2 crossover trial dataset with a binary outcome.

Usage

xo_b

Arguments

Format

A tibble/data.frame with one row per subject and the following columns:

h

Integer cluster ID (hospital)

p

Integer period (1 or 2)

k

Integer subject index within cluster-period

trt

Treatment indicator (0 = control, 1 = treatment)

x_c01, x_c02

Continuous covariates

x_b01

Binary covariate (0/1)

x_cat1_2, x_cat1_3

Dummy variables for a 3-level categorical covariate (level 1 is reference)

y_bin

Observed binary outcome (0/1)

Examples

Run this code
data(xo_b)
str(xo_b)
head(xo_b)

Run the code above in your browser using DataLab