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

# S3 method for 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.

Value

a vector of gamma-values.

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.