Repository navigation
Breaking Changes
-
compare_parameters()'sci_methodnow defaults toNULL, so the value is
potentially set by the models' unique methods. -
model_parameters(),ci(),standard_error(), andp_value()now default
to the Satterthwaite approximation forlmerModLmerTestmodels and suggest
doing so forlmerModmodels (#989).
Changes
-
model_parameters()for models from blavaan withstandardizeno longer
returns rows for parameters with fixed or constant standardized draws, such
as the standardized variances of exogenous latent variables.print()now
says that the parameters are standardized and names the type. The output now
also dropsp_significance, because its result depends on the scale of the
parameters. Version 0.30.0 already dropped the ROPE tests and Bayes factors.
Test names now match as in bayestestR. If you give these tests in other
spellings, for exampletest = "ROPE", the output also drops them. If
verbose = TRUE, an explicitdiagnosticother thanNULL,FALSEor
"none"now gives a warning, because the standardized draws have no chain
information.ci_method = "si"now gives an error. -
For mixed models without their own bootstrap method,
bootstrap_model()now
resamples whole clusters instead of single rows, withtype = "ordinary"
(the default) ortype = "balanced". Examples are models from
ordinal, cplm or nlme. This also changesbootstrap_parameters()and
model_parameters()withbootstrap = TRUE. Grouping factors that are not
nested in one factor give an error. -
model_parameters()for objects from emmeans supportsp_adjust = "mvt",
which adjusts p-values based on the multivariate t distribution (#854). -
model_parameters()uses variable labels for coefficients in multcomp
hypothesis labels (#1139).
Bug fixes
-
model_parameters()foremmGridobjects now correctly uses the family size
instead of the stratum count when applying Tukey p-value adjustments
(p_adjust = "tukey"), ensuring consistency withemmeans. -
The footer of printed
model_parameters()output withinclude_info = TRUE
now labels the R2 values of brms and rstanarm models, as "Conditional
R2" and "Marginal R2" for mixed models and as "R2" otherwise. Before, the
values had no labels, for example: 0.842; : 0.656. The values were
correct (#1271). -
model_parameters()withstandardize(other than"refit") returned wrong
standardized coefficients when only some parameters were kept, for example
withkeep,parametersorcomponent. The kept rows were scaled with the
standard deviations of other parameters. For models with one set of
parameters per response level, such asnnet::multinom(), all levels after
the first were not standardized. For glmmTMB models with zero-inflation,
component = "zi"gave an error. -
model_parameters()for BayesFactor objects with more than one model, for
example fromregressionBF()oranovaBF(), now shows the Bayes factor of
the first model in every row. The parameters also come from that model. Before
this fix, the rows showed the Bayes factors of all models (#1084). -
bootstrap_model()withtype = "parametric"no longer fails for models
without their own bootstrap method, such aslmorglm. It now draws new
responses withsimulate()and refits the model to them. Two kinds of model
give an error that suggeststype = "ordinary". In the first kind,
simulate()has no method, fails, or does not return one numeric response
per row. In the second kind, the response in the formula is not one column
of the data, for examplelog(y)orcbind(). -
Fixed issue where
bootstrap_parameters()andmodel_parameters()with
bootstrap = TRUEmislabeled the zero-inflation parameters of glmmTMB
models.bootstrap_model()now adds the suffix_zito these parameters,
and bootstrapped output no longer includes dispersion parameters (#1284). -
The
p_adjustargument inmodel_parameters()now accepts the methods from
stats::p.adjust.methodsin any letter case, for example"bh". Before,
this failed with an error. An invalid value forp_adjustno longer shows the
method in the footer of the printed output (#854). -
Fixed issue where
standard_error()returnedNULLfor objects from
datawizard::skewness()anddatawizard::kurtosis(). -
Fixed issue where
standardize_info(),standardize_parameters()and
standardize_posteriors()returned wrong values forbrmsfitmodels. With
method = "posthoc"or"smart", untransformed continuous predictors were
not multiplied by their SD. Withmethod = "smart", factor, character and
logical predictors of linear models used the SD of the whole response, unlike
the same model fromlm(). With a transformed term, such aslog(x),
method = "posthoc"and"smart"now revert to"basic"with a message, as
forlm(). The values for interaction terms and for terms that are converted
in the formula, such aslog(x)orfactor(x), can still be wrong. The same
is true for predictors that follow such a term (#1243). -
model_parameters()for multivariate models, for example
lm(cbind(y1, y2) ~ x), now gives an error with a post-hocstandardize
method such as"posthoc","basic"or"smart", asstandardize_parameters()
already did. Before this fix, the results were wrong and no warning was shown.
The rows of the first response used the standard deviation of all responses
pooled. The rows of the other responses were not standardized.
standardize = "refit"still works for these models (#707). -
ci()withmethod = "boot"andmodel_parameters()withci_method = "boot"
for glmmTMB models now give a message that this method only works formerMod
models. Before this fix, they returned Wald intervals with no message. The
footer of the printed output said that the intervals were from a parametric
bootstrap. The values do not change. To bootstrap these models, use
bootstrap_parameters()orbootstrap = TRUE. -
Fixed issue where
standardize_parameters()andstandardize_info()with
method = "smart"returned wrong values for factor, character and logical
predictors. If the first row of the data was at another level, the effects
were scaled by the response SD at that level. They are now scaled by the
response SD at the reference level. For example,lm(mpg ~ factor(cyl), mtcars)
gave -4.76 forfactor(cyl)6, and now gives -1.53. Sum and Helmert contrasts
have no reference level and do not change. -
Fixed issue where
model_parameters()withci_method = "boot"for lme4
models ignorediterations. The bootstrapped confidence intervals of the
fixed effects and the random effect variances always used 500 replicates.
They now useiterations, so calls that do not set it use the documented
default of 1000 replicates.ci()still defaults to 500.