modelbased 0.9.0
Breaking Changes
-
The default package used for
estimate_means(),estimate_slopes()and
estimate_contrasts()is now marginaleffects. You can set your preferred
package as backend using either thebackendargument, or in general by setting
options(modelbased_backend = "marginaleffects")or
options(modelbased_backend = "emmeans"). -
Deprecated argument and function names have been removed.
-
Argument
fixedhas been removed, as you can fix predictor at certain values
using thebyargument. -
Argument
transformis no longer used to determine the scale of the predictions.
Please usepredictinstead. -
Argument
transformis now used to (back-) transform predictions and confidence
intervals. -
Argument
methodinestimate_contrasts()was renamed intocomparison. -
All
model_*()alias names have been removed. Use the relatedget_*()
functions instead. -
The
show_dataargument inplot()defaults toFALSE.
Major Changes
-
The
"marginaleffects"backend is now fully implemented and no longer
work-in-progress. You can set your preferred package as backend using
either thebackendargument, or in general by setting
options(modelbased_backend = "marginaleffects")or
options(modelbased_backend = "emmeans"). -
All
estimate_*()functions get apredictargument, which can be used
to modulate the type of transformation applied to the predictions (i.e. whether
predictions should be on the response scale, link scale, etc.). It can also
be used to predict auxiliary (distributional) parameters. -
estimate_means()andestimate_contrasts()get aestimateargument,
to specify how to estimate over non-focal terms. This results in slightly
different predicted values, each approach answering a different question. -
estimate_contrasts()gains abackendargument. This defaults to
"marginaleffects", but can be set to"emmeans"to use features of that
package to estimate contrasts and pairwise comparisons. -
estimate_expectation()and related functions also get abyargument, as
alternative to create a datagrid for thedataargument. -
Many functions get a
verboseargument, to silence warnings and messages.
Bug fixes
-
estimate_contrasts()did not calculate contrasts for all levels when the
predictor of interest was converted to a factor inside the model formula. -
Fixed issue in
estimate_contrasts()whencomparsison(formerly:method)
was not"pairwise".