R/evaluate_eif.R
evaluate_eif_total.RdFunction to evaluate the canonical gradient of the total effect at a given set of estimated nuisance parameters and for each observation.
evaluate_eif_total(Y, A, Qbarbar, gn, a, a_star, ...)
| Y | The outcome |
|---|---|
| A | The treatment |
| Qbarbar | A list; needs to have entries named M1_M2_a and M1_star_M2_star_a_star corresponding to, respectively, the outcome regression under A = a, marginalized with respect to joint mediator distribution given C and A = a, and the outcome regression under A = a_star, marginalized with respect to the joint mediator distribution given C and A = a_star. |
| gn | List of mediator values |
| a | Treatment value |
| a_star | Referent treatment value |