- nAnimalVec
Integer vector. Stock sizes of the herds.
- method
Character string. "individual"
for individual sampling
or "limited"
for limited sampling.
- sampleSizeLtd
Integer. Required only if method == "limited"
. Sample size
for limited sampling, i.e., for each herd
sampleSizeLtd
animals are tested, or of the herd contains
less than sampleSizeLtd
animals the entire herd is tested.
- herdSensitivity
Numeric between 0 and 1. Required only if method == "individual"
.
Desired (minimal) hed sensitivity for individual sampling.
The number of animals to test per herd is determined
according to that value.
- intraHerdPrevalence
Numeric between 0 and 1. Intra-herd prevalence. The number of diseased
animals per herd is computed as
max(1,round(intraHerdPrevalence*nAnimalVec))
(it is assumed that at least one animal is diseased).
- diagSensitivity
Numeric between 0 and 1. Sensitivity (= probability of
a testpositive result, given the tested individual is diseased)
of the diagnostic test.
- diagSpecificity
Numeric between 0 and 1. Specificity (= probability of
a testnegative result, given the tested individual is not diseased)
of the diagnostic test. The default value is 1, i.e., perfect
specificity, and is recommended.