pattc_counterfactuals {DeepLearningCausal} | R Documentation |
Assess Population Data counterfactuals
Description
Create counterfactual datasets in the population for compliers and noncompliers. Then predict potential outcomes from counterfactuals.
Usage
pattc_counterfactuals(
pop.data,
response.mod,
ID = NULL,
cluster = NULL,
binary.outcome = FALSE
)
Arguments
pop.data |
population dataset |
response.mod |
trained model from |
ID |
string fir identifier variable |
cluster |
string for clustering variable |
binary.outcome |
logical specifying whether predicted outcomes are proportions or binary (0-1). |
Value
data.frame
object of predicted outcomes of counterfactual groups.
[Package DeepLearningCausal version 0.0.104 Index]