use_AddInd | R Documentation |
This function factory modifies an MP to use an index from AddInd
(and CV_AddInd
)
slots instead of Ind
by generating a wrapper function that assigns AddInd to Ind before
calling the MP function.
use_AddInd(mp, i)
mp |
MP to use. |
i |
The i-th index in AddInd to assign to the Ind slot. |
library(SAMtool)
om <- MSEtool::testOM
om@nsim <- 10
set.seed(1)
sra <- RCM(om,
data = list(Chist = runif(10), Index = runif(10), I_sd = rep(0.1, 10)))
my_mp <- use_AddInd(Itarget_base)
## Not run:
mse <- runMSE(sra@OM, MPs = "Itarget_base")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.