resampleMultinomial: A multinomial resampling function

Description Usage Arguments Value

View source: R/resampleMultinomial.R

Description

To construct an unweighted sample from a weighted one. Resample will be constructed according to the samples' weight. Samples with higher weights will be selected more often than samples with lower weights.

Usage

1

Arguments

w

weights vector.

Value

Function return an index called ancestry vector, which is drawn from a categorical distribution. Replace samples with the ancestor.


azure10h/PFSMC documentation built on Feb. 5, 2020, 5:11 a.m.