View source: R/importance_sampling_functions.R
resample_indices | R Documentation |
Resampling methods
resample_indices( normalised_weights, method = "multi", n = length(normalised_weights) )
normalised_weights |
a vector of normalised weights |
method |
method to be used in resampling, default is multinomial resampling ('multi'). Other choices are stratified ('strat'), systematic ('system'), residual ('resid') resampling |
n |
number of samples to resample |
a vector of resampled indices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.