stats
Fit a regression model to assess mediation.
method (str) – Either ‘parametric’ or ‘bootstrap’.
n_rep (int) – The number of simulation replications.
object. (Returns a MediationResults)
Mediation.fit