inst/examples/simulation_mc_example.R

# Generate some data
y = rnorm(10)

# Specify statistic and DGP
statistic = function(x) mean(x)
dgp = function(y, v) sample(y, replace = TRUE)

# Simulate statistic N times
MaxMC:::simulation_mc(y, statistic = statistic, dgp = dgp, N = 99)
julienneves/MaxMC documentation built on Oct. 9, 2024, 8:49 a.m.