dprev: dprev

Description Usage Arguments Details Examples

View source: R/MLE_IR.R

Description

Calculate mosquito infection rates

Usage

1
dprev(yes = c(0), no = c(0), disp = "y", conf = 0.95)

Arguments

yes

a vector of positive pools, with the elements indicating how many mosquitoes were in each positive pool

no

a vector of negative pools, with the elements indicating how many mosquitoes were in each negative pool

disp

'y' indicates to print results to dipslay

conf

The confidence interval to return. Default is 0.95 to yield a 95 percent confidence interval

Details

Citation: C. Williams and C. Moffitt 2005. Estimation of pathogen prevalence in pooled samples using maximum likelihood methods and open source software. Journal of Aquatic Animal Health 17: 386 - 391

Examples

1
2
3
4
5
dprev(y = c(15), n = c(15,15,16))
dprev(c(5,10), c(5))

dprev(y = c(15), n = c(15,15,16))
dprev(c(5,10), c(5))

akeyel/rf1 documentation built on Dec. 28, 2020, 4:48 a.m.