Description Usage Arguments Value
View source: R/resampleStratified.R
A resampling function. Stratified resampling is used to reduce variance when Monte Carlo methods are implemented to estimate population statistics. We pre-partition the (0,1] into n disjoint sets, then draw independetly from each sub-intervals.
1 | resampleStratified(w, N)
|
w |
Sample weights. |
N |
Number of particles. Defalut is the length of w. |
Return the index that is chosen.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.