Description
Currently, the EwE model input specifies maturity-at-age by functional group. To integrate EwE input into FIMS, we need to 1) read maturity-at-age from EwE, 2) treat these as observations of logistic selectivity curve, and 3) estimate the underlying selectivity parameters that would reproduce that curve. We will have helper function such as fit_logistic_selectivity() from PR NOAA-FIMS/ecosystemdata#15 and we will need a high-level function that takes EwE input and return a FIMS-ready parameter tibble that can be used as initial values in estimation models. The expected output format:
| model_family |
module_name |
fleet_name |
module_type |
label |
distribution_link |
age |
length |
time |
value |
estimation_type |
distribution_type |
distribution |
| catch_at_age |
Maturity |
NA |
Logistic |
inflection_point |
NA |
NA |
NA |
NA |
2 |
constant |
NA |
NA |
| catch_at_age |
Maturity |
NA |
Logistic |
slope |
NA |
NA |
NA |
NA |
1 |
constant |
NA |
NA |
Style guide:
- Use [[ ]] instead of $ for field extraction
- Full descriptive variable names (no abbreviations)
- Functions documented with roxygen2
- Remove
@author, or clearly state when content is generated by Copilot
- Follow the {testthat} template from the repo when writing tests: use_template.R.
Description
Currently, the EwE model input specifies maturity-at-age by functional group. To integrate EwE input into FIMS, we need to 1) read maturity-at-age from EwE, 2) treat these as observations of logistic selectivity curve, and 3) estimate the underlying selectivity parameters that would reproduce that curve. We will have helper function such as fit_logistic_selectivity() from PR NOAA-FIMS/ecosystemdata#15 and we will need a high-level function that takes EwE input and return a FIMS-ready parameter tibble that can be used as initial values in estimation models. The expected output format:
Style guide:
@author, or clearly state when content is generated by Copilot