-
Notifications
You must be signed in to change notification settings - Fork 5
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
polishing getYieldVsFcurve()
#6
Comments
@Kenhasteandersen Hi Ken, I would like to polish your yield curve function. Currently it only works in very specific circumstances, namely when the target species is selected by only one gear and that gear also selects another species. Otherwise one gets an error message. Clearly that requirement that the gear also selects other species I can fix by fixing the code. But I have a question about what the function should do in the case where a species is selected by several gears. Here is one proposal: For each gear selecting the target species create two copies of that gear with the same selectivities and catchabilities but make one copy only select the target species and the other copy only select the remaining species. Then vary the effort of the copy that selects only the target species and keep all other efforts the same. Is that how you would do it? An alternative would be to make the yield curve gear-specific, i.e., leave the fishing by all other gears unaffected, even if they also select the target species. |
Hi Gustav,
Great that you want to fix the code.
What I wanted was to only fish on the target species and leave all the other unaffected. The only way the gear enters is on the size selectivity on the target species. The curve can then be used to estimate the MSY of just that one species in an idealised context.
Another variant would be a function that only varies one gear (and possibly selects multiple species) while keeping the other gears fixed.
Does that answer your question?
Ken
For each gear selecting the target species create two copies of that gear with the same selectivities and catchabilities but make one copy only select the target species and the other copy only select the remaining species. Then vary the effort of the copy that selects only the target species and keep all other efforts the same.
Is that how you would do it? An alternative would be to make the yield curve gear-specific, i.e., leave the fishing by all other gears unaffected, even if they also select the target species.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#6 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADFHLAKLYCEWPGXWGCELZFDSRSSSZANCNFSM4MZVRX5A>.
|
…ecies selected by a specific gear. Also some other modifications on the way to addressing issue #6.
A few weeks ago I fixed some of the issues. There are now two functions: |
Hi @baldrech, you have done a lot on this issue and this has been merged in pull request #43 . Can you give an update on the current status of the work? I notice that there are currently some undocumented arguments in several functions which leads to errors when checking the package. Would you be able to complete the documentation? Many thanks, Gustav |
Hi @gustavdelius - I have modified the function |
Hi Samik. Yes, please create a pull request. |
Ken Andersen has contributed a function
getYieldVsFcurve()
, see https://sizespectrum.org/mizerExperimental/reference/getYieldVsFcurve.html. There are some things that should be fixed before it is moved to core:Frange
is not yet implemented.bPlot
argument should be removed and instead a separate functionplotYieldVsFcurve()
should be created. This should use ggplot2 rather than base plot.ixSpecies
argument should becomespecies
and work the same way as in other plot functions, i.e., it should be a name or vector of names of the species to be plotted.@md
should be added to roxygen comments so that the markdown syntax works.The following would be good to implement:
t_max
. The user should be warned if steady state is not reached.The text was updated successfully, but these errors were encountered: