Skip to contents

Function to perform LQAS based on data based on specified decision rules

Usage

run_lqas(data, n, d.lower, d.upper)

Arguments

data

A vector of simulated data produced by make_data()

n

Sample size of actual or test coverage data

d.lower

A numeric value for the lower classification threshold

d.upper

A numeric value for the upper classification threshold

Value

A list of coverage proportions and LQAS outcomes

Examples

run_lqas(data = make_data(proportion = 0.3, pop = 10000),
         n = 40, d.lower = 60, d.upper = 90)
#> $d
#> [1] 0
#> 
#> $outcome
#> [1] 1
#>