lse_synthetic_rules: Validation rules for the synthetic LSE data

lse_synthetic_rulesR Documentation

Validation rules for the synthetic LSE data

Description

Accounting, additional edit, and combined validation rules for lse_synthetic. The rules are stored as plain data frames of rule text so that the data set does not depend on the validate package; build the corresponding validate::validator objects with validate::validator(.data = lse_synthetic_rules$edit) before passing them to vimpute(method = "restricted").

Format

A named list with three data frames: accounting (36 rules), extra (56 rules), and edit (92 rules, the combination of both). Each has the columns

name

rule name (V01, V02, ...)

rule

the rule as R code, as accepted by validate::validator(.data = )

Examples


data(lse_synthetic_rules)
names(lse_synthetic_rules)
head(lse_synthetic_rules$edit)
if (requireNamespace("validate", quietly = TRUE)) {
  edit_rules <- validate::validator(.data = lse_synthetic_rules$edit)
  length(edit_rules)
}


VIM documentation built on Sept. 2, 2026, 5:07 p.m.