harvard-P01 / causalMediation

Implementation of Causal Mediation Analysis as published by Valeri and VanderWeele (2013, doi: 10.1037/a0031034)
10 stars 5 forks source link

Regression Output #27

Open LindaValeri opened 8 years ago

LindaValeri commented 8 years ago

In causalmediationAll return a list with outcome.regression, mediator.regression, estimates.

LindaValeri commented 8 years ago

go from global environment to list. Show regression formula

cchoirat commented 8 years ago

Deparse

Call:
lm(formula = outcome.formula, data = data)

Coefficients:
(Intercept)      therapy       attrib  
    -0.5124       0.9739       0.3203  
LindaValeri commented 8 years ago

fix CausalMediationRegression function so that runs only once for output and if boot =TRUE runs on resamples