An R package for parametric estimation of causal effects