fit_cpue_indices | R Documentation |
This function helps it fit the CPUE standardization models across multiple areas for a single species.
fit_cpue_indices(
dat,
species = "pacific cod",
areas = c("3[CD]+|5[ABCDE]+", "5[CDE]+", "5[AB]+", "3[CD]+"),
center = TRUE,
cache = here::here("report", "cpue-cache"),
save_model = FALSE,
arith_cpue_comparison = TRUE,
parallel = FALSE,
year_range = c(1996, lubridate::year(Sys.Date()) - 1)
)
dat |
A data frame from |
species |
The species common name to fit. |
areas |
A vector of regular expressions representing the statistical areas to fit. |
center |
Logical for whether or not the index should be centered on its geometric mean. |
cache |
A folder in which to cache the model output if desired. |
save_model |
Logical for whether the model should be cached. Defaults to
|
arith_cpue_comparison |
Logical: should the unstandardized comparison be
an arithmetic 'ratio estimator' CPUE (summed catch for this species divided
by summed effort for the entire fleet) (if |
parallel |
Should the various areas be fit in parallel? Make sure you have enough memory. (Disabled for now.) |
year_range |
Year range. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.