Migrating from Previous Versions#
If you were using a version of pymer4 older than v0.9.X you can refer to the notes and table below for how to migrate your workflow. These changes were motivated by two goals: (a) making a more consistent and intuitive API; (b) simplifying library maintenance and extensibility. In particular, we now offload all computations to R including multi-core parallelization (e.g. for bootstrapping) by leveraging various popular R libraries (e.g. parameters::model_parameters, lme4::bootMer). Python code is almost entirely a means to store and convert the inputs and outputs of a variety of R functions in the tidystats module using polars dataframes.
API Changes#
New models classes |
Old model classes |
|---|---|
|
|
|
|
|
|
|
|
Function |
New models API |
Old model API |
|---|---|---|
Create a model |
|
|
Fit a model |
|
same |
ANOVA table |
|
same |
Marginal estimates & comparisons |
|
|
Parameter estimates |
|
|
Fit statistics |
|
|
Fixed-effects LMMs/GLMMs |
|
|
Random-effects LMMs/GLMMs |
|
|
Random-effects-variances LMMs/GLMMs |
|
|
Use various statistical functions |
|
|
Deprecated Features#
Removed support for
Lm2()modelsRemoved plotting methods (please use
seabornormatplotlib)Removed permutation-based inference for, e.g.
model.fit(permute=1000)Removed miscellaneous stats and simulation functions
Planned Improvements#
You can see the updated development roadmap on github
integration with
scikit-learnEstimators and cross-validation toolsadditional models (e.g. ordinal regression via
ordinal::clm)