Description Usage Arguments Details Examples
Method to evaluate the distribution of a statistic, dependent on the distribution of the data. Returns B samples from the distribution of the statistic.
1 | monte_carlo_sim(sim.fn, statistic, B, sim.length, ...)
|
sim.fn |
Simulation function (distribution) from which the time series is drawn from. Takes only one argument representing the length of the drawn sample |
statistic |
Function: the statistic for which a sample-distribution will be created. |
B |
Amount of samples. |
sim.length |
Length of the sampled series. |
... |
Additional values passed on to the statistic function. |
Equal to drawing samples from the theoretical distribution of the statistic given the distribution of the data. This is useful when the theoretical distribution of the statistic, given the data distribution, does not have an analytical solution or to save time by computing an empirical distribution rather than calculating the theoretical.
Can for example be used to evaluate other bootstrap methods accuracy in a simulation study.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.