Simulation_data: Generic simulation prodedure used in the paper

Usage Arguments Examples

View source: R/Mle_and_simulation_generic_functions.R

Usage

1
Simulation_data(popmodelfunction, theta, xi, conditionalto, method = NULL, nbreps = 3000, nbrepI = 3000, nbrepSigma = 1000)

Arguments

popmodelfunction
theta
xi
conditionalto
method
nbreps
nbrepI
nbrepSigma

Examples

 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))
  }

DanielBonnery/pubBonneryBreidtCoquet2016 documentation built on May 6, 2019, 1:35 p.m.