Learn R Programming

MRStdLCRT (version 0.1.0)

sw_c: Example of stepped wedge CRT dataset for continuous outcome

Description

A toy dataset with cluster, period, and individual records for illustrating estimands in stepped wedge CRT with a continuous outcome.

Usage

data(sw_c)

Arguments

Format

A data frame with columns:

cluster

Cluster identifier (integer).

period

Period index (integer).

id

Individual identifier within cluster-period (integer).

trt

Treatment indicator (0/1).

x1

Auxiliary covariate (0/1).

x2

Auxiliary covariate (numeric).

y

Outcome (numeric, continuous).

Examples

Run this code
data(sw_c)
head(sw_c)

Run the code above in your browser using DataLab