adjPrevSensSpec {bootComb} | R Documentation |
Adjust a prevalence point estimate for a given assay sensitivity and specificity.
Description
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.
Usage
adjPrevSensSpec(prevEst, sens, spec, replaceImpossibleValues = FALSE)
Arguments
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. |
Value
A vector of the same length as prevEst, returning the adjusted prevalence estimates.
See Also
adjPrevSensSpecCI
, ssBetaPars
, optim
, dbeta
Examples
adjPrevSensSpec(prevEst=0.16,sens=0.90,spec=0.95)
[Package bootComb version 1.1.2 Index]