tsrobinson / SyGNet

Synthetic data using Generative Adversarial Networks
GNU General Public License v3.0
11 stars 2 forks source link

Additions to experimental module #37

Open tsrobinson opened 2 years ago

tsrobinson commented 2 years ago

Thanks to @antndlcrx we now have the basic treatment shock function. I will work up a demo for this at some point.

Looking forward, there are two further types of treatment shock we should model.

Interactive effects

In the first instance, what if we assume beyond the main effect there is an interaction effect with another variable in the data? Suppose:

We can then simulate a scenario where:

Heterogeneous Treatment Effects (HTE)

Unlike in the interaction case, we might want to preserve the ATE by simulating a HTE where the main effect is a function of some third variable, centred on $\mu$ . So:

We can simulate a scenario where:

One further complication we could add is a parameter $\psi$ to control the amount of heterogeneity: $\tilde{z}_\text{Z-score} = \psi \times \frac{\tilde{z} - \text{Mean}(\tilde{z})}{\text{StdDev}(\tilde{z})}$, and then we keep the same outcome equation.

antndlcrx commented 1 year ago

added a trial version of the requested functions