View source: R/genRCT.estimators.R
genRCT.estimators | R Documentation |
ATE estimated with Naive, IPSW, AIPSW, CW, ACW-t, ACW-b.
genRCT.estimators(
Y.trial,
A.trial,
X.trial,
Y.rwe,
A.rwe,
X.rwe,
family = "gaussian",
estimators,
sieve = TRUE,
seed = NULL,
osel1.t = NULL,
osel0.t = NULL,
osel1.b = NULL,
osel0.b = NULL,
osel.ipsw = NULL,
flag.boot = FALSE
)
Y.trial |
Observed outcome from a trial; vector of size |
A.trial |
Treatment received from a trial; vector of size |
X.trial |
Matrix of |
Y.rwe |
Observed outcome from OS; if obtained, vector of size |
A.rwe |
Treatment received from OS; if obtained, vector of size |
X.rwe |
Matrix of |
family |
The type of outcome; |
estimators |
A vector of one or multiple methods to estimate the ATE. Allowed values are
|
sieve |
A logical value indicating whether the method of sieves are used for estimating sampling score and outcome models.
Used only if |
seed |
An optional integer specifying an initial randomization seed for reproducibility.
Default is |
osel1.t |
A vector indicating selected outcome model covariates for the |
osel0.t |
A vector indicating selected outcome model covariates for the |
osel1.b |
A vector indicating selected outcome model covariates for the |
osel0.b |
A vector indicating selected outcome model covariates for the |
osel.ipsw |
A vector indicating selected sampling scole model covariates for the |
flag.boot |
A logical value indicating whether the function estimates bootstrap sample ATEs. Default is |
Return a list containing:
ate |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.