Description Usage Arguments Value Examples
Simulates a biodyn
object for a catch series, given the parameter estimates in the param
slot and variance covariance matrix
http://young.physics.ucsc.edu/jackboot.pdf
1 |
n |
|
object |
|
... |
other arguments |
biodyn
with estimates of stock based on catch time series
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ## Not run:
#simulate an object with known properties
bd=sim()
bd=window(bd,end=49)
#simulate a proxy for stock abundance
cpue=(stock(bd)[,-dims(bd)$year]+stock(bd)[,-1])/2
cpue=rlnorm(1,log(cpue),.2)
#set parameters
setParams(bd) =cpue
setControl(bd)=params(bd)
control(bd)[3:4,"phase"]=-1
#fit
bd=fit(bd,cpue)
bdJK=fit(bd,jackknife(cpue))
bdRnd =randJack(100,bd,bdJK)
plot(randJack(100,stock(bd)[,40:45],stock(bdJK)[,40:45]))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.