ATETrueValue {drcarlate}R Documentation

Calculates the true ATE effect.

Description

ATETrueValue is the version of TrueValue under full compliance.

Usage

ATETrueValue(dgptype, vIdx, n, g, pi)

Arguments

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.

Value

A 1xR vector. Simulated true ATE effect.

References

Jiang L, Linton O B, Tang H, Zhang Y. Improving estimation efficiency via regression-adjustment in covariate-adaptive randomizations with imperfect compliance [J]. 2022.

Examples


 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))
 

[Package drcarlate version 1.2.0 Index]