slaughter {cystiSim} | R Documentation |
Pig slaughter functions
Description
These functions simulate age-dependent slaughter of pigs. The default function is slaughter_nbinom
.
Usage
slaughter_binom(age, min, max, p)
slaughter_nbinom(age, min, max, size, mu)
Arguments
age |
Age of the pigs. |
min |
Minimum age at slaughter, i.e., Pr(slaughter<min)=0. |
max |
Age at which all pigs are definitely slaughtered, i.e., Pr(slaughter>=max)=1. |
p |
Binomial probability of slaughter. |
size |
Size of Negative Binomial distribution of age-specific slaughter probability. |
mu |
Mean of Negative Binomial distribution of age-specific slaughter probability. |
Note
For more details and examples, please visit the cystiSim Wiki pages on https://github.com/brechtdv/cystiSim/wiki.
Author(s)
[Package cystiSim version 0.1.0 Index]