Learn R Programming

cystiSim (version 0.1.0)

slaughter: 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.
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.