DEEPCAUSAL Procedure

Estimating Unknown Functions in Propensity Score and Outcome Models

There are two main models in causal inference: the propensity score model and the outcome model. Two approximate DNNs are constructed to estimate these two models. The DEEPCAUSAL procedure supports one binary treatment and one continuous outcome. The unconfoundedness is assumed; it is also called ignorability, selection on the observables, or no omitted variable bias.

Propensity Score Model

The propensity score model estimates the treatment assigning probability conditional on some covariates:

p left-parenthesis bold x Superscript left-parenthesis 1 right-parenthesis Baseline right-parenthesis equals probability left-parenthesis upper T equals 1 vertical-bar bold upper X Superscript left-parenthesis 1 right-parenthesis Baseline equals bold x Superscript left-parenthesis 1 right-parenthesis Baseline right-parenthesis

where p left-parenthesis bold x Superscript left-parenthesis 1 right-parenthesis Baseline right-parenthesis denotes the propensity score, T denotes the binary treatment, and bold x Superscript left-parenthesis 1 right-parenthesis is a vector of the observed covariates. The superscript left-parenthesis 1 right-parenthesis in bold upper X Superscript left-parenthesis 1 right-parenthesis denotes the covariates in Set 1, which are the covariates used in the propensity score model. The p left-parenthesis dot right-parenthesis is one unknown function to be estimated by a DNN.

The DNN for the propensity score model, a binary classification predictor, predicts the binary treatment by using the covariates in Set 1. It trains the observations in the input data set. The DNN is a fully connected multilayer perceptron (MLP). The input layer of that DNN corresponds to bold upper X Superscript left-parenthesis 1 right-parenthesis, and the output layer corresponds to the observed treatment variable. The activation functions for the hidden layers are all rectified linear unit (ReLU) functions, and the activation function for the output layer is a sigmoid function. The loss function is the negative log-likelihood function.

If no covariates are used to predict the binary treatment (bold upper X Superscript left-parenthesis 1 right-parenthesis Baseline equals empty-set), then no DNN needs to be trained for the propensity score model. A random assignment of the treatment and many other reasons might result in the empty bold upper X Superscript left-parenthesis 1 right-parenthesis; that is, all covariates are independent of the treatment. The propensity score is estimated by

p left-parenthesis empty-set right-parenthesis equals probability left-parenthesis upper T equals 1 vertical-bar bold upper X Superscript left-parenthesis 1 right-parenthesis Baseline equals empty-set right-parenthesis equals probability left-parenthesis upper T equals 1 right-parenthesis equals StartFraction sigma-summation Underscript i equals 1 Overscript n Endscripts double-struck 1 left-brace t Subscript i Baseline equals 1 right-brace Over n EndFraction

where t Subscript i denotes the treatment value of the ith observation and n denotes the number of observations. The indicator function double-struck 1 StartSet upper A EndSet equals 1 if A is true; otherwise, it is 0.

Outcome Model

The outcome model describes how the outcome depends on the treatment and some covariates in Set 2, which are the covariates used in the propensity score model. The covariates in Set 1 and Set 2 might be different. The DEEPCAUSAL procedure supports only one continuous outcome variable, and the outcome model is as follows:

double-struck upper E left-bracket upper Y vertical-bar bold upper X Superscript left-parenthesis 2 right-parenthesis Baseline equals bold x Superscript left-parenthesis 2 right-parenthesis Baseline comma upper T equals t right-bracket equals upper G left-parenthesis alpha left-parenthesis bold x Superscript left-parenthesis 2 right-parenthesis Baseline right-parenthesis plus beta left-parenthesis bold x Superscript left-parenthesis 2 right-parenthesis Baseline right-parenthesis t right-parenthesis

where Y is the outcome, t is the treatment, and upper G left-parenthesis dot right-parenthesis is a known function. For example, upper G left-parenthesis u right-parenthesis might be the identity function; that is, upper G left-parenthesis u right-parenthesis equals u. The superscript left-parenthesis 2 right-parenthesis in bold upper X Superscript left-parenthesis 2 right-parenthesis denotes the covariates in Set 2. In PROC DEEPCAUSAL, upper G left-parenthesis dot right-parenthesis is the identity function. The alpha left-parenthesis dot right-parenthesis and beta left-parenthesis dot right-parenthesis are unknown functions to be estimated by a DNN.

The DNN for the outcome model, a regression predictor, predicts the outcome by using the covariates in Set 2 and the treatment variable. It trains the observations in the input data set. The input layer of that DNN corresponds to bold upper X Superscript left-parenthesis 2 right-parenthesis. After the hidden layers, there is a parameter layer with two neurons that correspond to alpha left-parenthesis bold x Superscript left-parenthesis 2 right-parenthesis Baseline right-parenthesis and beta left-parenthesis bold x Superscript left-parenthesis 2 right-parenthesis Baseline right-parenthesis. The activation functions for this parameter layer are linear functions. Subsequently, t is included, and upper G left-parenthesis alpha left-parenthesis bold x Superscript left-parenthesis 2 right-parenthesis Baseline right-parenthesis plus beta left-parenthesis bold x Superscript left-parenthesis 2 right-parenthesis Baseline right-parenthesis t right-parenthesis is calculated as the result of the final output layer. upper G left-parenthesis dot right-parenthesis is set to the identity function in PROC DEEPCAUSAL, so alpha left-parenthesis bold x Superscript left-parenthesis 2 right-parenthesis Baseline right-parenthesis plus beta left-parenthesis bold x Superscript left-parenthesis 2 right-parenthesis Baseline right-parenthesis t is output as the prediction.

If no covariates are used to predict the outcome (bold upper X Superscript left-parenthesis 2 right-parenthesis Baseline equals empty-set), then no DNN needs to be trained for the outcome model. The outcome model is predicted by

double-struck upper E left-bracket upper Y vertical-bar bold upper X Superscript left-parenthesis 2 right-parenthesis Baseline equals empty-set comma upper T equals t right-bracket equals double-struck upper E left-bracket upper Y vertical-bar upper T equals t right-bracket

Moreover, when bold upper X Superscript left-parenthesis 2 right-parenthesis Baseline equals empty-set, alpha left-parenthesis bold x Superscript left-parenthesis 2 right-parenthesis Baseline right-parenthesis and beta left-parenthesis bold x Superscript left-parenthesis 2 right-parenthesis Baseline right-parenthesis are constants and are computed by

StartLayout 1st Row 1st Column alpha left-parenthesis empty-set right-parenthesis 2nd Column equals double-struck upper E left-bracket upper Y vertical-bar upper T equals 0 right-bracket equals StartFraction sigma-summation Underscript i equals 1 Overscript n Endscripts y Subscript i Baseline double-struck 1 left-brace t Subscript i Baseline equals 0 right-brace Over sigma-summation Underscript i equals 1 Overscript n Endscripts double-struck 1 left-brace t Subscript i Baseline equals 0 right-brace EndFraction 2nd Row 1st Column beta left-parenthesis empty-set right-parenthesis 2nd Column equals double-struck upper E left-bracket upper Y vertical-bar upper T equals 1 right-bracket minus double-struck upper E left-bracket upper Y vertical-bar upper T equals 0 right-bracket equals StartFraction sigma-summation Underscript i equals 1 Overscript n Endscripts y Subscript i Baseline double-struck 1 left-brace t Subscript i Baseline equals 1 right-brace Over sigma-summation Underscript i equals 1 Overscript n Endscripts double-struck 1 left-brace t Subscript i Baseline equals 1 right-brace EndFraction minus StartFraction sigma-summation Underscript i equals 1 Overscript n Endscripts y Subscript i Baseline double-struck 1 left-brace t Subscript i Baseline equals 0 right-brace Over sigma-summation Underscript i equals 1 Overscript n Endscripts double-struck 1 left-brace t Subscript i Baseline equals 0 right-brace EndFraction EndLayout

where y Subscript i denotes the outcome value of the ith observation, t Subscript i denotes the treatment value of the ith observation, and n denotes the number of observations. The indicator function double-struck 1 StartSet upper A EndSet equals 1 if A is true; otherwise, it is 0.

Last updated: July 09, 2026