misleading subtitle with check_heteroscedasticity with binomial data?

Open
#1,003 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@jmgirard is already working on this.

Since Nov 5, 2026.

Assessment

This issue has not been assessed yet.

Description

Consistency :green_apple: :apple: Docs :books:

I think the subtitle from check_heteroscedasticity is misleading for binomal data (and perhaps other distributions other than Gaussian)

The subtitle says that the reference line should be flat and horizontal. With Gaussian data it should be flat, but not with binomial data, as shown by this simulation.

Can the text be changed when the expectation isn't for a flat line?

# simulate binomial data
testData <- DHARMa::createData(sampleSize = 500, intercept = 0, fixedEffects = c(4), 
                      family = binomial(), randomEffectVariance = 0)

# fit model
mod <- glm(observedResponse ~ Environment1, data = testData, family = binomial)

# show diagnostics
performance::check_model(mod,check = "homogeneity", residual_type = "simulated")
#> Cannot simulate residuals for models of class `glm`. Please try
#>   `check_model(..., residual_type = "normal")` instead.

Created on 2026-11-05 with reprex v2.1.1

It also giving a message that it cannot simulate residuals, but the help file for check_model says these are the default for non-Gaussian data.

Dominant language
R
Stars
1.2k
Forks
113
Avg merge
9h 8m
Merged PRs (30d)
27

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from easystats/performance

All issues in easystats/performance

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.