Create counterfactual datasets in the population for compliers and noncompliers.
pattc_deeplearning_counterfactuals(
pop.data,
response.mod,
response.formula,
ID = NULL,
cluster = NULL
)data.frame object of predicted outcomes of counterfactual groups.
population dataset
trained model from response_model.
formula specifying the response variable and covariates.
string fir identifier variable
string for clustering variable