check_model() on more brms families

未关闭
#461 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
38/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
r
领域
data

调研方向

首先使用 performance::check_model() 重现 shifted_lognormal brms 示例,然后检查 check_model() 以及相关的模型族处理入口点。将失败的 check_model() 和 check_homogeneity() 路径与正常工作的 check_predictions() 和 check_outliers() 调用进行比较;当受支持的模型族不再报错,并且针对所报告案例存在回归覆盖时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Enhancement :boom:

Currently check_model() errors on some families, even though some plot could be produced (at least, a PP check)

m <- brms::brm(wt ~ mpg * hp, family = "shifted_lognormal", data = mtcars, refresh = 0)
#> Compiling Stan program...
#> Start sampling

# Doesn't work :'(
performance::check_model(m)
#> Error in get(family$family): object 'shifted_lognormal' not found

# Works
plot(performance::check_collinearity(m))
#> Warning: Model has interaction terms. VIFs might be inflated. You may check
#>   multicollinearity among predictors of a model without interaction terms.

# plot(performance::check_heteroscedasticity(m))

# Works
performance::check_predictions(m)
#> Using 10 posterior draws for ppc type 'dens_overlay' by default.


# Doesn't work
performance::check_homogeneity(m)
#> Error in bartlett.test.default(x = mf[[1L]], g = mf[[2L]]): there must be at least 2 observations in each group

# Works
plot(performance::check_outliers(m))

Created on 2022-08-06 by the reprex package (v2.0.1)

主要语言
R
星标
1.2k
派生
113
平均合并
9 小时 8 分钟
30 天内合并 PR
27

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

easystats/performance 的其他 Issue

查看 easystats/performance 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。