Learn R Programming

DeepLearningCausal (version 0.0.107)

pattc_deeplearning_counterfactuals: Assess Population Data counterfactuals

Description

Create counterfactual datasets in the population for compliers and noncompliers.

Usage

pattc_deeplearning_counterfactuals(
  pop.data,
  response.mod,
  response.formula,
  ID = NULL,
  cluster = NULL
)

Value

data.frame object of predicted outcomes of counterfactual groups.

Arguments

pop.data

population dataset

response.mod

trained model from response_model.

response.formula

formula specifying the response variable and covariates.

ID

string fir identifier variable

cluster

string for clustering variable