HDI?

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

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
r
领域
data

调研方向

从现有的 summarise_draws 用法以及 issue 中提到的基于百分位数的区间支持入手。确定 HDI 区间和众数摘要应如何适配所请求的输出,然后使用示例 draws 验证结果。issue 没有指定文件或测试,因此定位相关实现并定义预期行为也是这项工作的一部分。

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

描述

feature

Would it be in the scope of posterior to provide support for HDI's in contrast with quantile-based intervals? For example, say I wanted to quickly summarize my draws by their modes and 95% intervals.

example_draws() %>% 
  summarise_draws(mode = Mode, ~ quantile(.x, probs = c(.025, .975)))
# A tibble: 10 × 4
   variable  mode  `2.5%` `97.5%`
   <chr>    <dbl>   <dbl>   <dbl>
 1 mu        5.91  -2.16     10.2
 2 tau       1.74   0.174    14.6
 3 theta[1]  5.67  -2.81     22.7
 4 theta[2]  5.44  -3.24     14.9
 5 theta[3]  5.52 -15.0      13.2
 6 theta[4]  5.94  -4.64     14.8
 7 theta[5]  4.26  -8.68     12.3
 8 theta[6]  3.20  -6.80     12.8
 9 theta[7]  4.46  -2.57     18.1
10 theta[8]  4.22  -6.53     14.8

There's great support for percentile-based intervals. Is there support for HDI's?

主要语言
R
星标
172
派生
27
平均合并
5 天 12 小时
30 天内合并 PR
5

环境准备

从这里开始

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

stan-dev/posterior 的其他 Issue

查看 stan-dev/posterior 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

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