Skip to contents

Applies preliminary quality flags to a data frame containing tabulation or KPI outputs. This function is intentionally limited: it checks sample-size and optional CV rules when the relevant columns exist. Full representativity assessment must use the dedicated precision module.

Usage

enemdu_check_quality(
  data,
  sample_n_min = 60,
  cv_reliable_max = 0.15,
  cv_reduced_max = 0.3
)

Arguments

data

A data frame with analytical output columns.

sample_n_min

Minimum unweighted sample size. Defaults to 60.

cv_reliable_max

CV threshold for reliable estimates. Defaults to 0.15.

cv_reduced_max

CV threshold for reduced precision. Defaults to 0.30.

Value

The input data frame with quality columns updated or added.