r2.glmmTMB "Warning: get_variance ignores effects of dispersoin model."

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

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

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
r
領域
data

調査の方向性

mtcars を使った再現可能な glmmTMB の例から始め、performance::r2(mod) を実行します。dispformula を持つモデルについて r2() と get_variance() の経路を追跡します。分散モデルの効果が考慮され、報告されている警告が出力されなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

3 investigators :grey_question::question:

Hello,

I'm using the package performance (love it), and came across an issue. It seems the r2() function can't deal with glmmTMB models that include a dispersion model (dispformula). Would there be a "quick" way to make this possible?

repro:

library(glmmTMB)
library(performance)
data(mtcars)
mod <- glmmTMB(mpg ~ cyl, dispformula = ~ cyl, data = mtcars)
performance::r2(mod) 

This gives the message "Warning: get_variance ignores effects of dispersion model.
Random effect variances not available. Returned R2 does not account for random effects.
"
(The random effect part is ok; I didn't put one, but the part is the issue and it happens also whene there is a random effect).

Thank you in advance for your input!
Mick

主要言語
R
スター
1.2k
フォーク
113
平均マージ
9時間 8分
マージ済み PR(30日)
27

環境構築

はじめの一歩

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

easystats/performance のほかの issue

easystats/performance の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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