ATEDGP {drcarlate}R Documentation

Simulates the data for ATE estimators

Description

ATEDGP is the version of FuncDGP under full compliance.

Usage

ATEDGP(dgptype, rndflag, n, g, pi)

Arguments

dgptype

A scalar. 1, 2, 3 (Almost the same as 1-3 in the paper except that it does not have the DGP for D(1) or D(0)).

rndflag

A scalar. 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 the Jiang et al. (2022).

pi

A g x 1 vector. Targeted assignment probabilities across strata.

Value

ATEDGP returns a list containing 7 nx1 vectors named Y, X, S, A, Y1, Y0 and D. These seven vectors are the same as defined in Jiang et al. (2022). Note that vector X does not contain the constant term.

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

ATEDGP(dgptype = 1, rndflag = 1, n = 200, g = 4, pi = c(0.5, 0.5, 0.5, 0.5))

[Package drcarlate version 1.2.0 Index]