Expose `get_range_from_quantile()` to the user

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

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

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

評価

難易度
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分
マージ済み PR(30日)
2

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

epiforecasts/scoringutils のほかの issue

epiforecasts/scoringutils の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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