twolevel_data: Sample two-level data for analysis

twolevel_dataR Documentation

Sample two-level data for analysis

Description

Sample two-level data where individuals (e.g., students) are nested with clusters (e.g., schools)

Usage

twolevel_data

Format

Sample data contains:

id

cluster (e.g., school) identifier

Y

continuous outcome

Z

binary treatment (1=treated, 0=control)

X1

first individual-level confounder

X2

second individual-level confounder

X3

third individual-level confounder

W1

first cluster-level confounder

W2

second cluster-level confounder, considered as omitted/measured

lps

true propensity score logit

ps

true propensity score

Y1

true potential treatment outcome

Y0

true potential control outcome


youmisuk/CURobustML documentation built on Sept. 11, 2022, 11:04 a.m.