slaughter: Pig slaughter functions

Description Usage Arguments Note Author(s)

Description

These functions simulate age-dependent slaughter of pigs. The default function is slaughter_nbinom.

Usage

1
2
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)

brechtdv@gmail.com


brechtdv/cystiSim documentation built on Feb. 29, 2020, 4:47 p.m.