adapt_IS | R Documentation |
Adapts the number of particles used in a given Importance sampler to give adequate performance.
adapt_IS(N0, IS_estimator, param, no_samples = 10000)
N0 |
Initial number of particles. |
IS_estimator |
A function which carries out Importance sampling. |
param |
A list of epidemic and observational parameters to be passed
on to |
no_samples |
Number of IS estimates calculated to estimate the variance of the IS estimator. |
Returns number of particles which gives adequate variance of the log-estimate.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.