Skip to contents

Calculate sample size of number of cases to be found to assess coverage

Usage

get_n(N, dLower, dUpper, alpha = 0.1, beta = 0.1)

Arguments

N

Total population size of cases in the specified survey area

dLower

Lower triage threshold. Values from 0 to 1.

dUpper

Upper triage threshold. Values from 0 to 1.

alpha

Maximum tolerable alpha error. Values from 0 to 1. Default is 0.1

beta

Maximum tolerable beta error. Values from 0 to 1. Default is 0.1

Value

A list of values providing the LQAS sampling plan for the specified parameters. The list includes sample size, decision rule, alpha error and beta error for the specified classification scheme

Examples

get_n(N = 600, dLower = 0.7, dUpper = 0.9)
#> $n
#> [1] 1
#> 
#> $d
#> [1] 2
#> 
#> $alpha
#> [1] 0.003333333
#> 
#> $beta
#> [1] 0.9966667
#>