## EXAMPLE 1:
## A study has been carried out to detect Johne's disease in a population of
## cattle. There are two risk groups ('high' and 'low') with the risk of
## disease in the high risk group five times that of the low risk group.
## The number of animals sampled and unit sensitivity varies by risk group, as
## detailed below. Assume there number of cattle in the high risk and low risk
## group is 200 and 1800, respectively.
## Calculate the surveillance system sensitivity assuming a design prevalence
## of 0.01.
rg <- c(1,1,2,2)
se.u <- c(0.92,0.85,0.92,0.85)
n <- c(80,30,20,30)
df <- data.frame(rg = rg, se.u = se.u, n = n)
rsu.sep.rbvarse(N = c(200,1800), rr = c(5,1), df = df, pstar = 0.01)
## The surveillance system sensitivity is 0.99.
Run the code above in your browser using DataLab