stats
Mediation.
fit
Fit a regression model to assess mediation.
method : string
Either ‘parametric’ or ‘bootstrap’.
n_rep : integer
The number of simulation replications.
Returns a MediationResults object.
statsmodels.stats.mediation.Mediation
statsmodels.stats.mediation.MediationResults