adjPrevSensSpec {bootComb} | R Documentation |
Given a reported prevalence estimate from an imperfect assay with known sensitivity and specificity, this function will adjust the prevalence point estimate for the assay sensitivity and specificity.
adjPrevSensSpec(prevEst, sens, spec, replaceImpossibleValues = FALSE)
prevEst |
The reported prevalence point estimate. |
sens |
The known assay sensitivity. |
spec |
The known assay specificity. |
replaceImpossibleValues |
Logical; not all combinations of prevalence, sensitivity and specificity are possible and it can be that the adjusted prevalence is <0 or >1, so if this parameter is set to TRUE, values below 0 are set to 0, values above 1 to 1. Default to FALSE. |
A vector of the same length as prevEst, returning the adjusted prevalence estimates.
adjPrevSensSpecCI
, ssBetaPars
, optim
, dbeta
adjPrevSensSpec(prevEst=0.16,sens=0.90,spec=0.95)