ATETrueValue | R Documentation |
ATETrueValue is the version of TrueValue under full compliance.
ATETrueValue(dgptype, vIdx, n, g, pi)
dgptype |
A scalar. The value can be string 1, 2, or 3, respectively corresponding to the three DGP schemes in the paper (See Jiang et al. (2022) for DGP details). |
vIdx |
A 1xR vector. The authors set vIdx=[1 2 3 4] in Jiang et al. (2022). Every number declares the method of covariate-adaptive randomization. 1-SRS; 2-WEI; 3-BCD; 4-SBR. |
n |
Sample size. |
g |
Number of strata. The authors set g=4 in Jiang et al. (2022). |
pi |
Targeted assignment probability across strata. |
A 1xR vector. Simulated true ATE effect.
Jiang L, Linton O B, Tang H, Zhang Y. Improving estimation efficiency via regression-adjustment in covariate-adaptive randomizations with imperfect compliance [J]. 2022.
ATETrueValue(dgptype = 1, vIdx = c(1,2,3,4), n = 100, g = 4, pi = c(0.5,0.5,0.5,0.5))
ATETrueValue(dgptype = 2, vIdx = c(1,2,3,4), n = 100, g = 4, pi = c(0.5,0.5,0.5,0.5))
ATETrueValue(dgptype = 3, vIdx = c(1,2,3,4), n = 100, g = 4, pi = c(0.5,0.5,0.5,0.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.