simdata: Simulated multi-level data.

Description Usage Format Examples

Description

This data set is simulated to demonstrate the use of the package psmultilevel. The treatment is randomly assigned to 30% of the observations. The outcome is generated from a cluster-specific random effects model. The true ATE/ ATT is fixed at -1.

Usage

1

Format

simdata is a dataframe with 1000 observations (rows) and 5 variables (columns) named X1, X2, cluster, Z, and Y. The first two are independent observed variables. cluster identifies the cluster to which the observation belongs. Z denotes the treatment assignment (1 = Treated, 0 = Untreated). Y is the outcome of interest.

Examples

1
2

nln6/psmultilevel documentation built on May 29, 2019, 7:18 a.m.