Causal Mediation Analysis with treatment smoothed in the outcome stage and linear in the mediator stage
Posted by flâneur, at stats.stackexchange.com,
I am considering a mediation analysis that looks like the following in r: m_1 <- gam(mediator1 ~ age_cat + s(treat, k = 50, bs …