binned_residuals() fails for models fitted with na.action = na.exclude
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- r
調査の方向性
binned_residuals() の実装から始めて、提供された glm() の例を na.action = na.exclude 付きで再現する。test-check_model.R の既存のケース、特に過分散のテストを調べ、その後、予測変数が欠落しているケースの回帰テストを追加する。完了の基準は、除外された観測が長さの不一致なく処理され、binned_residuals(m) が成功し、check_model() の Binned Residuals パネルが表示されることである。
索引モデルが issue の本文から書いたものです。
説明
binned_residuals() errors for a logistic regression fitted with na.action = na.exclude when a predictor has a missing value:
library(performance)
d <- transform(mtcars, x = replace(wt, 1, NA_real_))
m <- glm(am ~ x, data = d, family = binomial, na.action = na.exclude)
binned_residuals(m)
#> Error in binned_residuals(m): 'x' must be nonnegative and integer
#> In addition: Warning message:
#> In y0 - fitted_values :
#> longer object length is not a multiple of shorter object length
The response still includes the excluded row, but the fitted values don't, so the two vectors have different lengths. With the default na.omit it works. check_model() calls binned_residuals() inside .safe(), so for these models the Binned Residuals panel just goes missing without a message. The package's tests already use na.exclude with glm fits in check_model() (test-check_model.R, the overdispersion tests).
- 主要言語
- R
- スター
- 1.2k
- フォーク
- 113
- 平均マージ
- 9時間 8分
- マージ済み PR(30日)
- 27
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
easystats/performance のほかの issue
-
Waiting for response :love_letter:
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
easystats/performance#1005 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
misleading subtitle with check_heteroscedasticity with binomial data?対応中かも @jmgirard が 26 日前に担当しました。 オープンConsistency :green_apple: :apple: Docs :books:
easystats/performance#1003 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
`check_outliers()`: Cook's distances land on the wrong rows when the model skips or reorders rowsオープン3 investigators :grey_question::question: Bug :bug:
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
easystats/performance#981 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Docs :books: Enhancement :boom:
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
easystats/performance#901 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Enhancement :boom:
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
easystats/performance#891 ·
メンテナーはふだん 1 日以内に返信
easystats/performance の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
mitchelloharawild/mixtime#111 ·
-
audit backlog
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
sagemathinc/sagebrush#3374 ·
メンテナーはふだん 1 日以内に返信
-
status: triage_needed
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
Affects R users only - NOT web app users CRAN requires this be fixed enhancement PRIORITY LOW rank:C-low-value-low-cost
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
Public-Environmental-Data-Partners/EJAM#818 ·
メンテナーはふだん 1 日以内に返信