predict.cfmgn.RdObtains predictive intervals on a test dataset based on
an cfmgn object from link{cfsens_cf_mgn}.
# S3 method for cfmgn predict( obj, X_test, estimand = c("treated", "control"), type = c("ate", "att", "atc") )
| obj | an object of class |
|---|---|
| X_test | testing covariates. |
| estimand | the inferential target that takes value in {"treated", "control"}. See details. |
| type | the type of inference target. Takes value in {"ate", "att", "atc"}. See details. |
predictive intervals. A data.frame that contains nrow(X_test) rows and
two columns: "Y_hi" refers the upper bound and "Y_lo"
the lower bound.
When type = "treated", predictive intervals for Y(1)
are constructed; when type = "control", predictive intervals
for Y(0) are constructed.
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.