Causality, NLP, Machine Learning, Deep Dives, Thoughts And Theory.
the mediation setting, the treatment (T) cannot affect the outcome (Y) directly except through the “middle-man” mediator (W). Therefore, if the text is acting as a mediator it is necessary to account for it in the causal estimation. Often, the causal effect of interest is the natural direct effect