genRCT.estimators: Estimate the ATE using specified estimators

View source: R/genRCT.estimators.R

genRCT.estimatorsR Documentation

Estimate the ATE using specified estimators

Description

ATE estimated with Naive, IPSW, AIPSW, CW, ACW-t, ACW-b.

Usage

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
)

Arguments

Y.trial

Observed outcome from a trial; vector of size n (trial sample size).

A.trial

Treatment received from a trial; vector of size n.

X.trial

Matrix of p baseline covariates from a trial; dimension n by p.

Y.rwe

Observed outcome from OS; if obtained, vector of size m (OS sample size); otherwise, set Y.rwe = NULL.

A.rwe

Treatment received from OS; if obtained, vector of size m; otherwise, set A.rwe = NULL.

X.rwe

Matrix of p baseline covariates from OSl; dimension m by p.

family

The type of outcome; 'gaussian' for gaussian regression or 'binomial' for logistic regression. Default is "gaussian".

estimators

A vector of one or multiple methods to estimate the ATE. Allowed values are 'Naive', 'IPSW', 'AIPSW', 'CW', 'ACW-t', 'ACW-b'. The 'ACW-b' is allowed only when both Y.rwe and A.rwe are obtained. Default specifies all 6 methods.

sieve

A logical value indicating whether the method of sieves are used for estimating sampling score and outcome models. Used only if estimators = 'AIPSW' or 'ACW-t' or 'ACW-b'. Default is TRUE.

seed

An optional integer specifying an initial randomization seed for reproducibility. Default is NULL, corresponding to no seed.

osel1.t

A vector indicating selected outcome model covariates for the 'ACW-t' estimator in the group trt = 1. This is only relevant when sieve = TRUE and inference = TRUE. Otherwise, set osel1.t = NULL.

osel0.t

A vector indicating selected outcome model covariates for the 'ACW-t' estimator in the group trt = 0. This is only relevant when sieve = TRUE and inference = TRUE. Otherwise, set osel0.t = NULL.

osel1.b

A vector indicating selected outcome model covariates for the 'ACW-b' estimator in the group trt = 1. This is only relevant when sieve = TRUE and inference = TRUE. Otherwise, set osel1.b = NULL.

osel0.b

A vector indicating selected outcome model covariates for the 'ACW-b' estimator in the group trt = 0. This is only relevant when sieve = TRUE and inference = TRUE. Otherwise, set osel0.b = NULL.

osel.ipsw

A vector indicating selected sampling scole model covariates for the 'AIPSW' estimator. This is only relevant when sieve = TRUE and inference = TRUE. Otherwise, set osel.ipsw = NULL.

flag.boot

A logical value indicating whether the function estimates bootstrap sample ATEs. Default is FALSE.

Value

Return a list containing:

ate

idasomm/genRCT documentation built on April 15, 2023, 7:16 a.m.