Learn R Programming

DeepLearningCausal (version 0.0.107)

deep_predict: Complier model prediction

Description

Predict Compliance from control group in experimental data

Usage

deep_predict(
  deep.complier.mod,
  complier.formula,
  exp.data,
  treat.var,
  compl.var
)

Value

data.frame object with true compliers, predicted compliers in the control group, and all compliers (actual + predicted).

Arguments

deep.complier.mod

model object from deep.complier.mod()

complier.formula

formula to fit compliance model (c ~ x) using complier variable and covariates

exp.data

data.frame object of experimental dataset

treat.var

string specifying the binary treatment variable

compl.var

string specifying binary complier variable