predict.cfmgn: Prediction method for cfmgn objects

Description Usage Arguments Details Value

View source: R/cfsens_cf_mgn.R

Description

Obtains predictive intervals on a test dataset based on an cfmgn object from link{cfsens_cf_mgn}.

Usage

1
2
3
4
5
6
7
## S3 method for class 'cfmgn'
predict(
  obj,
  X_test,
  estimand = c("treated", "control"),
  type = c("ate", "att", "atc")
)

Arguments

obj

an object of class cfmgn.

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.

Details

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.

Value

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.


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