Skip to content

Commit c6dfdcc

Browse files
Expand check_heterogeneity_bias()'s output (#812)
Co-authored-by: Mattan S. Ben-Shachar <[email protected]>
1 parent df8e983 commit c6dfdcc

12 files changed

+827
-77
lines changed

DESCRIPTION

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: performance
33
Title: Assessment of Regression Models Performance
4-
Version: 0.13.0.7
4+
Version: 0.13.0.8
55
Authors@R:
66
c(person(given = "Daniel",
77
family = "Lüdecke",
@@ -77,6 +77,7 @@ Imports:
7777
insight (>= 1.2.0),
7878
datawizard (>= 1.0.2),
7979
stats,
80+
methods,
8081
utils
8182
Suggests:
8283
AER,
@@ -93,6 +94,7 @@ Suggests:
9394
CompQuadForm,
9495
correlation,
9596
cplm,
97+
curl,
9698
dagitty,
9799
dbscan,
98100
DHARMa (>= 0.4.7),

NAMESPACE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ S3method(check_collinearity,zeroinfl)
4848
S3method(check_concurvity,gam)
4949
S3method(check_distribution,default)
5050
S3method(check_distribution,numeric)
51+
S3method(check_group_variation,data.frame)
52+
S3method(check_group_variation,default)
5153
S3method(check_heteroscedasticity,default)
5254
S3method(check_homogeneity,afex_aov)
5355
S3method(check_homogeneity,default)
@@ -297,6 +299,7 @@ S3method(print,check_concurvity)
297299
S3method(print,check_dag)
298300
S3method(print,check_distribution)
299301
S3method(print,check_distribution_numeric)
302+
S3method(print,check_group_variation)
300303
S3method(print,check_heterogeneity_bias)
301304
S3method(print,check_heteroscedasticity)
302305
S3method(print,check_homogeneity)
@@ -339,6 +342,7 @@ S3method(print,r2_nakagawa_by_group)
339342
S3method(print,r2_pseudo)
340343
S3method(print,test_likelihoodratio)
341344
S3method(print,test_performance)
345+
S3method(print_html,check_group_variation)
342346
S3method(print_html,check_itemscale)
343347
S3method(print_html,compare_performance)
344348
S3method(print_html,test_performance)
@@ -557,6 +561,7 @@ export(check_convergence)
557561
export(check_dag)
558562
export(check_distribution)
559563
export(check_factorstructure)
564+
export(check_group_variation)
560565
export(check_heterogeneity_bias)
561566
export(check_heteroscedasticity)
562567
export(check_heteroskedasticity)

NEWS.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,29 @@
22

33
## New functions
44

5+
* New function `check_group_variation()` to check within-/between-group
6+
variability (this function will replace `check_heterogeneity_bias()` in
7+
future releases.)
8+
59
* New functions `performance_reliability()` and `performance_dvour()`. These
610
functions provide information about the reliability of group-level estimates
711
(i.e., random effects) in mixed models.
812

913
## Changes
1014

1115
* Singularity checks with `check_singularity()` are now more efficient and also
12-
include the random effects for the dispersion component (from package *glmmTMB*).
13-
Furthermore, a `check` argument allows to check for general singularity (for
14-
the full model), or can return singularity checks for each random effects term
15-
separately.
16+
include the random effects for the dispersion component (from package
17+
*glmmTMB*). Furthermore, a `check` argument allows to check for general
18+
singularity (for the full model), or can return singularity checks for each
19+
random effects term separately.
1620

1721
## Bug fixes
1822

1923
* Fixed issue with wrong computation of pseudo-R2 for some models where the
2024
base-model (null model) was updated using the original data, which could
2125
include missing values. Now the model frame is used, ensuring the correct
22-
number of observations in the returned base-model, thus calculating the correct
23-
log-likelihood and returning the correct pseudo-R2.
26+
number of observations in the returned base-model, thus calculating the
27+
correct log-likelihood and returning the correct pseudo-R2.
2428

2529
* Fixed examples in `check_outliers()`.
2630

@@ -29,7 +33,8 @@
2933
## Breaking changes
3034

3135
* `check_outliers()` with `method = "optics"` now returns a further refined
32-
cluster selection, by passing the `optics_xi` argument to `dbscan::extractXi()`.
36+
cluster selection, by passing the `optics_xi` argument to
37+
`dbscan::extractXi()`.
3338

3439
* Deprecated arguments and alias-function-names have been removed.
3540

0 commit comments

Comments
 (0)