predict.itemgn.RdObtains gamma-values on a test dataset based on
an itemgn object from link{cfsens_mgn}.
# S3 method for itemgn predict( obj, X_test, Y1_test = NULL, Y0_test = NULL, type = c("ate", "att", "atc"), Gamma_max = 5, gamma_length = 51 )
| obj | an object of class |
|---|---|
| X_test | testing covariates. |
| Y1_test | the potential outcome when treated.
The default is |
| Y0_test | the potential outcome when not treated.
The default is |
| type | the type of inference target. Takes value in {"ate", "att", "atc"}. See details. |
| Gamma_max | the maximum value of Gamma to be considered for sensitivity analysis. The default is 5. |
| gamma_length | the number of Gamma to be considered for sensitivity analysis. The default is 51. |
a vector of gamma-values.
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.