gformula function

Counterfactual means via G-Formula