Learn R Programming

MRStdLCRT (version 0.1.0)

xo_c: Example crossover cluster-randomized trial dataset with continuous outcome

Description

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

Usage

xo_c

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_cont

Observed continuous outcome

Examples

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

Run the code above in your browser using DataLab