CausalPy
CausalPy copied to clipboard
New example: ANCOVA for confounding
The existing ANCOVA notebook focusses clearly on a pre-test post-test experimental design. However, the ANCOVA style approach can also be used in situations where we have:
- a categorical treatment variable $Z$
- a continuous confounder $C$
- a continuous outcome $Y$
- [ ] Add an example for this situation
- [ ] ~~Change the kwarg
pretreatment_variable_name
. This needs to be a more general name. We'll also need to update the existing ANCOVA example to reflect this change in kwarg name.~~ This would only be required if we ended up using thePrePostNEGD
class for generic ANCOVA or 'controlling for confounders', which doesn't make any sense.
Some thought needs to go into this. At the moment the pre/post ANCOVA example uses the PrePostNEGD
class. I think this is reasonable for that specific situation, but if we want to just to generic ANCOVA, or a 'controlling for confounders' approach, then we'd want to use a different class.