Expose `get_range_from_quantile()` to the user

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

从内部的 scoringutils:::get_range_from_quantile() 入口点开始,检查如何将其向用户公开。根据 issue 中的备选方案确定函数命名,然后验证所选的公共函数接受一个分位数水平,并返回相应的对称中心区间范围。

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

描述

question

Sometimes it is useful to obtain the interval range to which a given quantile level corresponds to. For example, a 5% quantile forms the lower bound of a 90% symmetric central prediction interval.

We have an internal function scoringutils:::get_range_from_quantile() that takes in a quantile level and returns the symmetric central interval range (in percent) to which that quantile level would correspond. Some users might like that function so we should export it.

The name is not ideal, because a) "range" maybe isn't very clear and b) it's the quantile level, not the quantile that is used as an input.

Other ideas:

  • get_corresponding_interval The connection to the quantile level would be clear as it is get_corresponding_interval(quantile_level).
  • get_interval_from_quantile_level(). Clear, but very long.
  • get_interval(). Maybe a bit too concise.
  • get_quantile_interval()
  • get_symmetric_range()
主要语言
R
星标
65
派生
24
平均合并
1 小时 24 分钟
30 天内合并 PR
2

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

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

epiforecasts/scoringutils 的其他 Issue

查看 epiforecasts/scoringutils 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

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