LQAS classifier
Arguments
- n
Number of cases found.
- n_total
Number sampled.
- threshold
Decision rule threshold/s. Should be between 0 and 1. At least one threshold should be provided for a two-tier classifier. Two thresholds should be provided for a three-tier classifier. Default is a three-tier classifier with rule set at 0.2 and 0.5.
Value
A character value or vector indicating classification. If
threshold
is a single value, the generic function returns 1 if n
is
greater than the threshold else 0. The coverage classifier
function returns "Satisfactory" if n
is greater than the threshold
else "Not satisfactory". If threshold
is two values, the generic
function returns 1 if n
is greater than the first threshold and 2 if
n
is greater than the second threshold else 0. The CMAM coverage
classifier returns "Low" if n
is below or equal to lower threshold,
"High" if n
is above the higher threshold, and "Moderate" for
all other values of n
.
Examples
lqas_classify_coverage(n = 6, n_total = 40)
#> [1] "Low"
with(survey_data, lqas_classify_coverage(n = in_cases, n_total = n))
#> [1] "Low" "Low" "Low" "Low" "Low" "Low"
#> [7] "Low" "Moderate" "Moderate" "Moderate" "Low" "Low"
#> [13] "Low" "Low"