[feat]: get index error distribution from SS3 models
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 54/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- r
調査の方向性
Read convert_output() and plot_index() to trace how $cpue becomes the plotted index intervals; the issue does not name source files or tests. Inspect how r4ss::SS_output() provides $survey_error and $survey_units, then decide how that information should be represented in the converted output. Done means index intervals reflect each SS3 error structure, including symmetric intervals for normal errors.
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
Thanks to @ericward-noaa for adding index intervals in https://github.com/nmfs-ost/stockplotr/pull/468/. This is an important feature that is important to be able to interpret the index fits.
One refinement needed in the future is to account for the fact that SS3 has multiple options for error structure for indices:
- -1=normal;
- 0=lognormal;
- 1=lognormal with bias correction;
- >1=df for T-distribution
Of these, lognormal probably covers at least 95% of models, but the normal error is used for models that include an environmental predictor of recruitment deviations.
The plot below was created loading stockplotr from Eric's fork associated with #468 and running the following code which relies on a petrale sole model with an index of recruitment deviations posted by @okenk. The "env" fleet uses normal error since the index spans zero so the intervals should be symmetric around the points and not tiny for observations close to zero.
petrale <- r4ss::SS_output('https://raw.githubusercontent.com/okenk/recruit_index_sims/refs/heads/main/simulations/petrale/0.2_30/30/em/')
petrale_converted <- convert_output(petrale)
plot_index(petrale_converted, interval = 0.95, module = "cpue")
Describe the solution you would like.
I don't think that convert_output() is currently getting the information on error structure. In Report.sso that's in a separate table from the main table of index output.
Currently, r4ss::SS_output() returns the table $cpue (which is converted and serves the basis for the plots) as well as two vectors $survey_units (which is probably not needed for plotting), and $survey_error, which contains the codes above.
I'm happy to modify r4ss::SS_output() to merge those vectors into $cpue so that units and error were just additional columns. These would then need to be somehow integrated into the table created by convert_output(), ideally in a format that is similar to what FIMS will use to store index error structure assuming that in the future there will be additional uncertainty options beyond the current ~ dlnorm() option.
Describe alternatives you have considered
stockplotr::convert_output() could also do the merging of the separate SS3 tables
Additional context
No response
- 主要言語
- R
- スター
- 20
- フォーク
- 10
- 平均マージ
- 3日 8時間
- マージ済み PR(30日)
- 31
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nmfs-ost/stockplotr のほかの issue
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
nmfs-ost/stockplotr#470 ·
メンテナーはふだん 1 日以内に返信
-
Address R cmd check warnings対応中かも @sbreitbart-NOAA が 3 日前に担当しました。 オープン
nmfs-ost/stockplotr#459 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[refactor]: merge multiple models into singular file for standard output対応中かも @JZahner1 が今日担当しました。 オープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
nmfs-ost/stockplotr#457 · コメント 14 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Check for obs and exp. for each example data in the package対応中かも @Schiano-NOAA が 4 日前に担当しました。 オープンquestion
nmfs-ost/stockplotr#452 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Add make_rda and rda bundle to composition plots対応中かも @Schiano-NOAA が 4 日前に担当しました。 オープンdevelopment enhancement
nmfs-ost/stockplotr#451 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
nmfs-ost/stockplotr の issue をすべて見る
似ている issue
-
bug key bindings source editor
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
REQ - Positron IDE guidance対応中かも @johannajokio が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
get_procs() @return docs don't match returned columns, and pid column is the row index対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
posit-dev/connectapi#532 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Huber-group-EMBL/Rarr#294 ·
メンテナーはふだん 1 日以内に返信