Description Usage Arguments Value
Create synthetic populations with FPBB.
1 2 | fpbb_synth_pops(weights, L = 2, N = length(weights) * 2,
return_weights = TRUE)
|
weights |
Vector of weights for each unit in the reference sample. These determine the initial probabilities of selection for the weighted Polya urn scheme used to generate each synthetic population. |
L |
Number of synthetic populations to create. |
N |
Size of the synthetic populations. In theory this is the size of the full population but in practice only needs to be 10-20 times as large as the reference sample. |
return_weights |
Logical flag indicating whether the synthetic populations should be returned as weights or indices.
|
Returns a data frame with one column for each synthetic population.
If return_weights = TRUE
each column will be a vector containing
the number of times a unit appears in the synthetic population. If
return_weights = FALSE
each column will be a vector containing
the row number of each unit in the reference sample in the order it was
selected.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.