R-squared for Dirichlet regression (`r2`)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 DirichletReg 模型的 r2() 处理开始,并检查 DirichletReg issue 12 中的可复现示例。将常用参数化和替代参数化与 MuMIn::rsquaredLR() 进行比较,重点关注如何声明零模型。完成标准是确定所报告的值是否正确,并在需要时支持具有经验证的 R-squared 结果的 Dirichlet 回归。
由索引模型根据 Issue 内容生成。
描述
Hi! First of all, thank you for creating and maintaining this package!
I have come across an unexpected behaviour when applying r2() to Dirichlet regression fitted with the DirichletReg package. In short, the Dirichlet regression extends the beta regression to C categories: bounded responses (0, 1) across more than 2 categories. This regression comes in two parametrizations: common (a separate model is fitted to each of the C categories) vs alternative (a separate model is fitted to C-1 categories, and precision is modelled separately). Each model can use a different set of explanatory variables, separated by pipes |.
r2() appears to return Nagelkerke's R2, but the value is very high for models with the alternative parametrization. For instance, a value close to 0.9, when the squared correlation between fitted and observed values is no higher than 0.75 for any category. The value for a model with the common parametrization is more sensible (i.e. in line with the correlations between fitted and observed values). I suspect this has to do with how a null model is declared, based on comparisons with MuMIn::rsquaredLR(). A reproducible example is available in an issue over at the DirichletReg package.
https://github.com/maiermarco/DirichletReg/issues/12
I am not an expert, so perhaps the r2 values actually make sense. The analysis of proportions across categories is quite interesting, and given a recent review (https://besjournals.onlinelibrary.wiley.com/doi/full/10.1111/2041-210X.13234) its popularity might increase in ecology and evolution. If performance can work with such models it would be a very useful extension!
Thank you!
- 主要语言
- R
- 星标
- 1.2k
- 派生
- 113
- 平均合并
- 9 小时 8 分钟
- 30 天内合并 PR
- 27
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
easystats/performance 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
easystats/performance#1038 ·
维护者通常 1 天内回复
-
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 一周以上 新手友好度 45/100
easystats/performance#901 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 easystats/performance 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
ThinkR-open/mordew#89 ·
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
epiforecasts/EpiNow2#1694 · 2 个 reaction ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
easystats/correlation#403 ·
-
难度 1/5 1 小时以内 新手友好度 85/100
mitchelloharawild/mixtime#111 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
conda-forge/xgboost-feedstock#313 ·