View source: R/sample_AddIerr.R
sample_AddIerr | R Documentation |
This function adds log-normally distributed error to OM@cpars$AddIerr
. It
also sets the survey hyperdepletion/hyperstability parameter based on
OM@beta
. This is useful if you want to override the default of estimating
hyperdepletion/hyperstability, observation error, and autocorrelation in the
additional "real" indices as is done in MSEtool.
sample_AddIerr(om)
om |
A MSEtool operating model that has been run through
|
A MSEtool operating model.
library(SAMtool)
om <- MSEtool::testOM
om@nsim <- 5
set.seed(1)
om <- RCM(om,
data = list(Chist = runif(10), Index = runif(10), I_sd = rep(0.1, 10))
)
om2 <- sample_AddIerr(om@OM)
matplot(t(om2@cpars$AddIerr[,1,]), type = "l", lty = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.