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