R/epi.pooled.R

Defines functions epi.pooled

Documented in epi.pooled

epi.pooled <- function(se, sp, P, m, r){
   # Herd specificity:
   PlSp <- sp^m
   HSp <- (PlSp)^r

   # Herd sensitivity:
   HSe <- 1 - ((1 - (1 - P)^m) * (1 - se) + (1 - P)^m * PlSp)^r
   
   # Herd level apparent prevalence:
   HAPneg <- 1 - HSp

   rval <- list(HAPneg = HAPneg, HSe = HSe, HSp = HSp)
   rval
}

 

Try the epiR package in your browser

Any scripts or data that you put into this service are public.

epiR documentation built on Nov. 20, 2023, 9:06 a.m.