Description Usage Arguments Value Examples
View source: R/generate_data_psr.R
Generate data for compliance under pseudo-randomization.
1 | generate_data_psr(n, p, delta = 0.5, compliance_p = 0.75)
|
n |
sample size |
p |
dimension of covariates |
delta |
complier average causal effect |
compliance_p |
compliance proportion |
data.frame including id, treatment assignment indicator z, complier indicator c, treatment receipt indicator s, outcome y, and covariates x1, ..., xp.
1 | generate_data_psr(n = 100, p = 8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.