Repository navigation
2.0.0
Major release, tracked in the
2.0.0 milestone.
Reported values change in this release; see Upgrading to 2.0 in the README.
Changed
- Confidence intervals for OLS coefficients and for direct effects now use t critical values with the residual degrees of freedom, as PROCESS does. Intervals were based on z, which made them too narrow in small samples (#40).
- No index of moderated mediation is reported when a moderator sits on both the X-to-M and the M-to-Y paths (models 58 to 73, 75 and 76), matching PROCESS. The indirect effect is quadratic in such a moderator and the previously reported values were not Hayes's indices (#43).
modvalraises aValueErrornaming any key that is not a moderator of the model, in the constructor and in the plotting methods; misspelled names were silently ignored (#46).- Passing
jn=True,effsize=Trueormc=Truenow warns that the option is not supported; the warnings never fired. Unsupported PROCESS options such asnormalwarn with a visibleUserWarninginstead of a hiddenDeprecationWarning, and an unknown keyword argument raises aTypeErrorinstead of being ignored (#47). - A logistic regression that diverges or does not converge raises
pyprocessmacro.ConvergenceErrorinstead of returning garbage silently; failed bootstrap resamples are counted for that reason too, and the bootstrap gives up with a clear error once more resamples failed than were requested. Bias-corrected intervals stay finite when every draw falls on one side of the estimate (#49).
Fixed
- Adjusted R² of the OLS outcome models used one degree of freedom too many; the F p-value is computed with the survival function so it no longer rounds to exactly zero (#41).
- Cox-Snell and Nagelkerke pseudo R² of logistic outcome models are computed in log space and no longer become NaN beyond about a thousand observations (#42).
- The sample size reported after dropping rows with missing values is the number of rows kept; the number of dropped rows was always reported as zero (#44).
seed=0andseed=Noneare accepted; any integer up to 2**32 - 1 works, andNonedraws a different bootstrap sample on every run (#45).- Importing the package no longer resets Python's global warning filters (#48).
- The HC1 covariance estimator scaled by n/(n-k-1) instead of n/(n-k); it was unreachable before
cov_typeexisted (#52).
Removed
plot_direct_effects()andplot_indirect_effects(), which raised aDeprecationWarningsince 1.0.0. Useplot_conditional_direct_effects()andplot_conditional_indirect_effects()(#50).- The
.pyistub files, which were inaccurate and unmaintained; the inline type hints remain (#50).
Added
statsmodelsis a test dependency (pip install -e .[test]).- The accuracy suite against PROCESS now also covers model 4, the conditional effects of the moderation-only models 1 to 3, and the index tables of every model where PROCESS 2.16 prints one.
cov_typeoption selecting the OLS covariance estimator:"standard"(default),"HC0","HC1","HC2"or"HC3";hc3=Trueremains as shorthand for"HC3".Process.dvnames the outcome variable;iv, which held it under a misleading name, is kept for compatibility (#52).- README: an "Upgrading to 2.0" section listing every change in reported values and behaviour, and documentation of
cov_type; the 1.0.4 note no longer calls the default estimator HC0 (#51).