Description Usage Arguments Details Value Author(s) See Also Examples

Simulates (zero-inflated) egg count data

1 2 |

`n` |
sample size (number of faeces collected) |

`mean` |
true number of eggs per gram (epg) |

`kappa` |
overdispersion parameter, |

`phi` |
prevalence, i.e. proportion of infected animals, between 0 and 1 |

`f` |
correction factor of the egg counting technique, either an integer or a vector of integers with length |

`rounding` |
logical. If TRUE, the Poisson mean for the raw counts is rounded. The rounding applies since the mean epg is frequently reported as an integer value. For more information, please see Details. |

`seed` |
an integer that will be used in a call to set.seed before simulation. If NULL, a random seed is allocated. |

In the simulation of raw (`master`

) counts, it follows a Poisson distribution with some mean. The mean is frequently rounded down if it has a very low value and `rounding = TRUE`

, hence there expects to be a negative bias overall when *μ* < 150. Set `rounding = FALSE`

if one does not wish to have any bias in the simulated counts.

A data.frame with three columns, namely the observed epg (`obs`

),
number of eggs counted on microscope slide (`master`

) and
true epg in the sample(`true`

).

Craig Wang

Michaela Paul

`fec_stan`

for analyzing faecal egg count data with one sample

1 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.