matching.generate.resize_population: Takes an original sample, and returns 'count.required'...

Description Usage Arguments Details Author(s)

Description

If the population is too small, it will be made bigger by replication of entities. If the population is too big, only some entities will be selected depending to weights. If the population is exactly of the right size, then it will be entirely kept as in the original sample.

Usage

1
matching.generate.resize_population(sample, count.required, colname.weight)

Arguments

sample

the sample to use for loading

count.required

the count of entities expected as a result

colnaƓ.weight

a string describing the column to be used as a weight in the sample

Details

The actual sampling is entirely delegated to the dplyrsample_n function.

Author(s)

Samuel Thiriot <samuel.thiriot@res-ear.ch>


samthiriot/gosp.dpp documentation built on May 18, 2019, 3:44 p.m.