Dataset

Functions to load example data

epgs

Faecal egg count samples (before and after treatment)

Pre-Analysis Functions

Functions to simulate and to find priors

simData1s()

Simulate faecal egg count data (1-sample situation)

simData2s()

Simulate faecal egg count data (2-sample situation)

getPrior_delta()

Get prior parameters from Beta distribution

getPrior_mu()

Get prior parameters from Gamma distribution

Analysis Functions

Functions to analyze faecal egg counts

fecrtCI()

Compute standard FECRT according to WAAVP guidelines

fec_stan()

Modelling of faecal egg count data (one-sample case)

fecr_stan()

Model the reduction of faecal egg count

fecr_stanExtra()

Model the reduction of faecal egg count using custom models

fecr_stanSimple()

Model the reduction of faecal egg count using a simple Bayesian model

Post-Analysis Functions

Functions to visualize and to diagnose

plotCounts()

Plot faecal egg count data

stan2mcmc()

Convert a Stanfit object to a MCMC object

fecr_probs()

Compute probability of the reduction parameter relative to a given threshold