retro | R Documentation |
Performs a retrospective stock assessment for the desired years using the FLSAM stock assessment method
retro(stock, indices, control, retro, year.range)
stock |
An |
indices |
An |
control |
An |
retro |
An integer that specifies the number of retrospective years. Default value = 0. Only used if year.range is not specified. |
year.range |
Numeric vector of years to perform the assessment |
The argument 'year.range' is a numeric vector of years for which the assessment is to be performed. If this is not specified the integer "retro" used (default value = 0). If retro = 0 the assessment is run for final year only. If retro = 1, the assessment is run for the penultimate and final year and so on.
Returns an FLSAMs object. Individual assessments that failed to converge are not included in this object, but a warning is issued in each case.
Based on code by Laurence Kell, modified by Niels T. Hintzen and Mark R. Payne
looi
#Load assessment
library(FLSAM)
data(NSH)
data(NSH.sam)
#Run a retrospective analyses for 3 years
res <- retro(NSH,NSH.tun,NSH.ctrl,retro=3)
#Make an FLStocks object and plot the results
NSH.retro <- res + NSH
plot(NSH.retro)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.