Skip to contents

Applies morie_misclass_correct to a count rather than a proportion and reports the number of members the recorded data miss.

Usage

morie_misclass_count(observed_count, n, sensitivity, specificity)

Arguments

observed_count

Number of units recorded as members.

n

Total number of units classified.

sensitivity

Probability a true member is recorded as a member.

specificity

Probability a true non-member is recorded as a non-member.

Value

A list with count_corrected, count_observed, undercount (corrected minus observed) and undercount_pct relative to the corrected count.

Examples

morie_misclass_count(400, 10000, sensitivity = 0.75, specificity = 0.999)
#> $count_corrected
#> [1] 520.6943
#> 
#> $count_observed
#> [1] 400
#> 
#> $undercount
#> [1] 120.6943
#> 
#> $undercount_pct
#> [1] 23.17949
#>