Skip to contents

Calculate decision rule for a specified sample size and lower and upper triage thresholds

Usage

get_d(N, n, dLower, dUpper, alpha = 0.1, beta = 0.1)

Arguments

N

Total population size of cases in the specified survey area

n

Sample size

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_d(N = 600, n = 40, dLower = 0.7, dUpper = 0.9)
#> $n
#> [1] 1
#> 
#> $d
#> [1] 1
#> 
#> $alpha
#> [1] 0.9983333
#> 
#> $beta
#> [1] 0.001666667
#>