kosukeimai / mediation

R package mediation
58 stars 29 forks source link

meaiation analysis for continuous treatment #46

Closed Guoguo-ux closed 1 year ago

Guoguo-ux commented 1 year ago

How can I perform a mediation analysis with a continuous treatment. I want to esimate indirect effect when exposure increase 1 unit instead of specifying control.value and treat.value.

tingleyd commented 1 year ago

The default is a 0 / 1 change. Because the default is linear, you can set it to any 1 unit change (e.g., 4 to 5) and same results.