Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure j in exec summary and Figure 39 need forecast time series #1111

Closed
aaronmberger-nwfsc opened this issue Jan 21, 2024 · 16 comments
Closed

Comments

@aaronmberger-nwfsc
Copy link
Collaborator

These two identical figures (one in the main document and one in the executive summary) need the forecast catch scenarios added to the plot.

@cgrandin
Copy link
Collaborator

cgrandin commented Jan 22, 2024

The new objects in the model object created are a bunch of depl data frames as below:

base_model$forecasts$<forecast year>$<catch stream>$depl

Example - for projected 2025 assessment forecast for 2023 catch we get:
image

The Executive Summary builds fine, I didn't build the rest yet

@aaronmberger-nwfsc
Copy link
Collaborator Author

Thanks for adding these @cgrandin.

I notice that the pre-forecast relative spawning biomass time series in these plots don't match our relative spawning biomass time series without forecasts (i.e., figures e and 27) - maybe it is only for the 2024 point. Last year, the end year (2023) lined up correctly.

@cgrandin
Copy link
Collaborator

cgrandin commented Jan 22, 2024

It's for the 2024 point, because 2024 is replaced with the forecast value for that plot. It is the only way to make the series line up, and it is "more" correct isn't it?

In previous years it was the same, the end year in the two plots is not the same.
It is the point from the default harvest rule forecast.

@aaronmberger-nwfsc
Copy link
Collaborator Author

aaronmberger-nwfsc commented Jan 22, 2024

I don't think it is correct. Biomass (and relative biomass) at the start of 2024 is not a forecast. Our executive summary says rel biomass at the start of 2024 is 76.4%, but then these forecast figures say it is ~43%. I think that's wrong. Our decision tables all show rel biomass at the start of 2024 is 76.4% as well.

This figure in last years document lines up with what is in the executive summary (i.e., both show 2023 rel biomass just above B0), so there must have been a change. Last years decision tables show rel biomass for 2023 at 104% (matching).

@cgrandin
Copy link
Collaborator

Ok, I can put it back to use the 2024 value from the model output. It will look really weird though as there'll be a huge bump up and then down in one year.

@cgrandin
Copy link
Collaborator

cgrandin commented Jan 22, 2024

image

@cgrandin
Copy link
Collaborator

cgrandin commented Jan 22, 2024

See how the forecasts don't line up...

I can write code to connect all those lines but we have never done it this way

All the 2024 projected values are the same for all catch streams, because they are at the start of the year:

image

@cgrandin
Copy link
Collaborator

image

@cgrandin
Copy link
Collaborator

Updated the 2024 depletion in b4313bc

@aaronmberger-nwfsc
Copy link
Collaborator Author

Hmm, I'm still not fully following. While the connection to 2024 now looks good, I can't understand why No Fishing scenario would bring it right back down so drastically. I would have thought it would have been something similar to last year where the no fishing scenarios doesn't have a huge effect (figure from last years assessment):
image

Am I missing something?

@cgrandin
Copy link
Collaborator

The values appear to be correct...

This is the chunk of code where the calculations take place:
https://github.com/pacific-hake/hake-assessment/blob/b4313bc05cba55987df4594ad8cfad0a83f2cc7b/R/load-forecasts.R#L83C6-L104C29

The depl value is Bratio_* / SSB_Initial from the forecasts mcmc values (posteriors.sso). Is that correct? See this line:

depl <- sb |>

@cgrandin
Copy link
Collaborator

Nevermind... I shouldn't be dividing BRatio by SSB_Initial, it should just be BRatio itself. Stand by

@aaronmberger-nwfsc
Copy link
Collaborator Author

The purple line should follow our decision tables for the No Fishing (a) scenario, so the points in 2025, 2026, and 2027 should be 1.00, 1.02, and 0.98, respectively. The other catch scenario lines (green, red, blue, black) should also match the decision table median rel spawning biomass output values. The decision table looks correct.

image

@cgrandin
Copy link
Collaborator

cgrandin commented Jan 22, 2024

I was dividing by B0 twice. I blame myself for calling it biomass in the previous code even though it was depletion. I was too lazy to change it all apparently. This matches the table.

image

@aaronmberger-nwfsc
Copy link
Collaborator Author

ohh - that looks good! I don't blame you at all. I blame myself for asking you to make the static and dynamic B0 plots and the fished and unfished biomass trajectories plots because then you start dividing by all sorts of non-usual stuff that gets confusing. So I'm guessing you were still thinking on that level.....

Close this sucker up Chris.

@cgrandin
Copy link
Collaborator

cgrandin commented Jan 22, 2024

Done in 5031a68

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

No branches or pull requests

2 participants