-
The deprecated function
visualisation_matrix()
has been removed. Useinsight::get_datagrid()
instead. -
The
"average"
option for argumentestimate
was renamed into"typical"
. The former"average"
option is still available, but now returns marginal means fully averaged across the sample.
-
The
predict()
argument forestimate_means()
gets an"inverse_link"
option, to calculate predictions on the link-scale and back-transform them to the response scale after aggregation by groups. -
New functions
pool_predictions()
andpool_contrasts()
, to deal with modelbased objects that were applied to imputed data sets. E.g., functions likeestimate_means()
can be run on several data sets where missing values were imputed, and the multiple results fromestimate_means()
can be pooled usingpool_predictions()
. -
The
print()
method is now explicitly documented and gets some new options to customize the output for tables. -
New option
"esarey"
for thep_adjust
argument. The"esarey"
option is specifically for the case of Johnson-Neyman intervals, i.e. when callingestimate_slopes()
with two numeric predictors in an interaction term. -
print_html()
andprint_md()
pass...
to format-methods (e.g. toinsight::format_table()
), to tweak the output. -
The
show_data
argument inplot()
is automatically set toFALSE
when the models has a transformed response variable, but predictions were not back-transformed using thetransform
argument. -
The
plot()
method gets anumeric_as_discrete
argument, to decide whether numeric predictors should be treated as factor or continuous, based on the of unique values in numeric predictors. -
Plots now use a probability scale for the y-axis for models whose response scale are probabilities (e.g., logistic regression).
-
Improved printing for
estimate_contrasts()
when one of the focal predictors was numeric.
-
Fixed issue in the
summary()
method forestimate_slopes()
. -
Fixed issues with multivariate response models.
-
Fixed issues with plotting ordinal or multinomial models.
-
Fixed issues with
ci
argument, which was ignored for Bayesian models. -
Fixed issues with contrasting slopes when
backend
was"emmeans"
. -
Fixed issues in
estimate_contrasts()
when filtering numeric values inby
. -
Fixed issue in
estimate_slopes()
for models from package lme4.
-
The default package used for
estimate_means()
,estimate_slopes()
andestimate_contrasts()
is now marginaleffects. You can set your preferred package as backend using either thebackend
argument, or in general by settingoptions(modelbased_backend = "marginaleffects")
oroptions(modelbased_backend = "emmeans")
. -
Deprecated argument and function names have been removed.
-
Argument
fixed
has been removed, as you can fix predictor at certain values using theby
argument. -
Argument
transform
is no longer used to determine the scale of the predictions. Please usepredict
instead. -
Argument
transform
is now used to (back-) transform predictions and confidence intervals. -
Argument
method
inestimate_contrasts()
was renamed intocomparison
. -
All
model_*()
alias names have been removed. Use the relatedget_*()
functions instead. -
The
show_data
argument inplot()
defaults toFALSE
.
-
The
"marginaleffects"
backend is now fully implemented and no longer work-in-progress. You can set your preferred package as backend using either thebackend
argument, or in general by settingoptions(modelbased_backend = "marginaleffects")
oroptions(modelbased_backend = "emmeans")
. -
All
estimate_*()
functions get apredict
argument, 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 aestimate
argument, 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 abackend
argument. 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 aby
argument, as alternative to create a datagrid for thedata
argument. -
Many functions get a
verbose
argument, to silence warnings and messages.
-
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"
.
- Fixed issues related to updates of other easystats packages.
- The minimum needed R version has been bumped to
3.6
.
-
Fixed issues with printing-methods.
-
Maintenance release to fix failing tests in CRAN checks.
- Maintenance release to fix failing tests in CRAN checks.
visualisation_matrix()
has now become an alias (alternative name) for theget_datagrid()
function, which is implemented in theinsight
package.
- Patch release. This update fixes failing tests after updating the insight package.
-
API changes:
levels
inestimate_contrasts
has been replaced bycontrast
.levels
andmodulate
are in general aggregated underat
. -
estimate_prediction()
deprecated in favour ofestimate_response()
. -
estimate_expectation()
now hasdata=NULL
by default.
-
General overhaul of the package.
-
Entire refactoring of
visualisation_matrix()
. -
Option of standardizing/unstandardizing predictions, contrasts and means is now available via
standardize()
instead of via options. -
Introduction of
model_emmeans()
as a wrapper to easily createemmeans
objects. -
estimate_smooth()
transformed intodescribe_nonlinear()
and made more explicit.
estimate_link()
now does not transform predictions on the response scale for GLMs. To keep the previous behaviour, use the newestimate_relation()
instead. This follows a change in how predictions are made internally (which now relies onget_predicted()
, so more details can be found there).
- Minor improvements.
Predicted
is now the name of the predicted column for Bayesian models (similarly to Frequentist ones), instead of the centrality index (e.g.,Median
).
- Models from package glmmTMB are now supported.
estimate_slope()
now gives an informative error when no numeric predictor is present.
-
Partial support of formulas.
-
Refactor the emmeans wrapping.
- Fix CRAN check issues.
- Minor code changes to address changes from the forthcoming
parameters
package update.
- Fix CRAN check issues.
- Added a
NEWS.md
file to track changes to the package