Learn R Programming

eggCounts (version 0.4-1)

simData1s: Simulate faecal egg count data (1-sample situation)

Description

Simulates (zero-inflated) egg count data

Usage

simData1s(n = 10, m = 500, k = 0.5, psi = 1, f = 50)

Arguments

n
sample size (number of faeces collected)
m
true number of eggs per gram (EPG) (i.e. worm burden)
k
overdispersion factor, $k \to \infty$ corresponds to Poisson
psi
prevalence (i.e. proportion of infected animals)
f
correction factor of the egg counting technique

Value

  • a data-frame with the observed EPG (obs), number of eggs counted on microscope slide (master) and true egg counts (true).

Examples

Run this code
fec <- simData1s(n=10, m=500, k=0.5, psi=0.7)

Run the code above in your browser using DataLab