Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: performance
Title: Assessment of Regression Models Performance
Version: 0.19.0.7
Version: 0.19.0.8
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down Expand Up @@ -97,6 +97,7 @@ Suggests:
brms,
car,
carData,
cluster,
CompQuadForm,
correlation (>= 0.8.8),
cplm,
Expand Down Expand Up @@ -130,6 +131,7 @@ Suggests:
loo,
MASS,
Matrix,
matchednull (>= 0.2.2),
mclogit,
mclust,
metadat,
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ S3method(print,r2_mlm)
S3method(print,r2_nakagawa)
S3method(print,r2_nakagawa_by_group)
S3method(print,r2_pseudo)
S3method(print,test_clusters)
S3method(print,test_likelihoodratio)
S3method(print,test_performance)
S3method(print_html,check_group_variation)
Expand Down Expand Up @@ -701,6 +702,7 @@ export(r2_zeroinflated)
export(rmse)
export(simulate_residuals)
export(test_bf)
export(test_clusters)
export(test_likelihoodratio)
export(test_lrt)
export(test_performance)
Expand Down
28 changes: 28 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## Changes

* New function `test_clusters()` uses the `matchednull` package to compare a
selected cluster count with the counts obtained from matched-null data that
keep the observed margins and approximately the observed correlations. It
reports one of three outcomes (no detected excess, departure from the
reference model, below the reference range) and validates the return values
of the clustering function.

* `model_performance()` for mixed models now fits the null model only once
when both R2 and ICC are requested, instead of once for each index. This
applies to non-Gaussian models, for which both indices need the null model.
Expand Down Expand Up @@ -202,6 +209,27 @@
in order of their degrees of freedom. `test_vuong()` and `test_wald()` now give
a clear error for *lavaan* models instead of the same recursion (#427).

## Changes

* `check_model()` gets a `show_smooth` argument. With `show_smooth = FALSE`,
the Linearity and Homogeneity of Variance panels draw neither the LOESS
smoother nor the cell means, and the Influential Observations panel draws no
LOESS smoother. This needs *see* newer than 0.14.2. Older versions ignore the
setting.

* `check_model()` and `check_predictions()` now work for multivariate models
from package *brms*. Use the `response` argument to name the response to
check. Without `response`, both functions give an error that lists the names
of the responses (#908).

* `check_model()` now shows the plot of influential observations for models
from package *glmmTMB* with a gaussian, poisson, binomial, Gamma, or `nbinom2`
family, and without zero-inflation or a dispersion formula. The plot uses hat
values and a one-step approximation of Cook's distance, so the model is not
refit. For other *glmmTMB* models, the plot is skipped, and with
`verbose = TRUE` a message names the reason. For the same models,
`plot(check_outliers())` shows this plot with the Cook's distances from the
refits (#95).
* `check_collinearity()` uses a new method for the confidence intervals of
VIF and tolerance. The method inverts the noncentral F distribution of the
auxiliary regression of each term, as `MBESS::ci.R2()` does for fixed
Expand Down
Loading
Loading