Skip to content
This repository has been archived by the owner on Jul 31, 2022. It is now read-only.

Can sraplus support stock-specific effort and priors? #2

Open
arni-magnusson opened this issue Nov 15, 2021 · 0 comments
Open

Can sraplus support stock-specific effort and priors? #2

arni-magnusson opened this issue Nov 15, 2021 · 0 comments

Comments

@arni-magnusson
Copy link
Contributor

Hi,

I am experimenting with supplying stock-specific effort data and stock-specific priors to an sraplus analysis. To make things easy to refer to, I have organized the experiment on two branches:

The only difference is in the data.R script. On the stocks_pooled branch, format_driors has effort data as a single vector (shared by all stocks) and priors as single numbers (shared by all stocks). In contrast, on the stocks_separate branch, format_driors has effort data as a tibble (each column is one stock) and priors as a vector (each element is one stock).

Problems seem to arise in two places:

  1. On the stocks_separated branch in the data.R script, the plot_driors call raises an error: Error: All columns must be atomic vectors or lists. Problem with column 3.
  2. On the stocks_separated branch in the model.R script, the fit_sraplus call doesn't run the model. Instead of raising an error message, it does nothing.

If this is a known and expected behavior, a follow-up question is whether we can expect to see sraplus support for stock-specific effort and priors in the future?

Thanks,
Arni

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant