Simulate cluster-randomized trial data with binary outcomes
genBinCRT.Rd
Simulate cluster-randomized trial data with binary outcomes
Usage
genBinCRT(m = 1, n = 1, p_vec = c(0.5, 0.5), rho = NULL)
Value
Simulated binary outcomes represented as an n x 4 matrix with the columns encoding the treatment arm, cluster, individual, and response.
Author
Lee Ding lee_ding@g.harvard.edu