Sample variables from an offset truncated power distribution with fixed sum
Source:R/sampling.R
sample_offset_truncated_power_distribution.Rd
Default values adapted from Ferguson et al. (2005). The final sample is
adjusted to ensure that the total sum of samples equals to N
.
Arguments
- N
An integer giving the sum of generated random variables
- prop_max
The proportion of
N
which is the maximum value of a single sample- a
A parameter of the distribution (?)
- c
A parameter of the distribution (?)
See also
Other sampling:
sample_log_normal()
,
sample_negbinom()