View source: R/Mle_and_simulation_generic_functions.R
1 | Simulation_data(popmodelfunction, theta, xi, conditionalto, method = NULL, nbreps = 3000, nbrepI = 3000, nbrepSigma = 1000)
|
popmodelfunction |
|
theta |
|
xi |
|
conditionalto |
|
method |
|
nbreps |
|
nbrepI |
|
nbrepSigma |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (popmodelfunction, sampleparam, theta, xi, conditionalto,
method = NULL, nbreps = 3000, nbrepI = 3000, nbrepSigma = 1000)
{
model <- popmodelfunction(theta, xi, conditionalto)
cave <- cav(model, nbrepSigma = nbrepSigma, nbrepI = nbrepI,
method)
sim <- simule(model, nbreps = nbreps, method)
return(list(model = model, xi = xi, sim = sim, cave = cave))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.