predict.itepac: Prediction method for itepac objects

Description Usage Arguments Details Value

View source: R/cfsens_pac.R

Description

Obtains gamma-values on a test dataset based on an itepac object from link{cfsens_pac}.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S3 method for class 'itepac'
predict(
  obj,
  X_test,
  Y1_test = NULL,
  Y0_test = NULL,
  type = c("ate", "att", "atc"),
  bnd_type = c("wsr"),
  num_grids = 1000,
  rand_ind = NULL,
  wsr_seed = 24601,
  max_gamma = 5,
  gamma_length = 51
)

Arguments

obj

an object of class itepac.

X_test

testing covariates.

Y1_test

the potential outcome when treated. The default is NULL. See details.

Y0_test

the potential outcome when not treated. The default is NULL. See details.

type

the type of inference target. Takes value in {"ate", "att", "atc"}. See details.

bnd_type

the method for constructing lower bound for the CDFs. The default is "wsr".

gamma_length

the number of Gamma to be considered for sensitivity analysis. The default is 51.

Gamma_max

the maximum value of Gamma to be considered for sensitivity analysis. The default is 5.

Details

When type = "ate", the inference is valid unconditionally; when type = "att", the inference is valid conditional on T=1, and Y1_test should be provided; when type = "atc", the inference is valid conditional on T=0, and Y0_test should be provided.

Value

a vector of gamma-values.


zhimeir/cfsensitivity documentation built on Feb. 10, 2022, 12:38 a.m.