This function performs coupled resampling based on index-matching. It takes vectors of normalized weights, of same sizes, and number of desired samples ('ntrials'). If 'ntrials' is not given, default to size of normweights1.
1 2 | CR_indexmatching(xparticles1, xparticles2, normweights1, normweights2,
ntrials)
|
Two vectors of ancestors, column-binded in a matrix. Takes values between 1 and length(normweights1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.