misleading subtitle with check_heteroscedasticity with binomial data?

オープン
#1,003 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@jmgirard がすでに取り組んでいます。

2026年11月5日 から。

評価

この issue はまだ評価されていません。

説明

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.

主要言語
R
スター
1.2k
フォーク
109
平均マージ
1日 14時間
マージ済み PR(30日)
41

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

easystats/performance のほかの issue

easystats/performance の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。