Skip to contents

Creates comparison levels based on the absolute difference between two numeric values. Thresholds are ordered from strictest (smallest permitted difference) to most lenient.

Usage

cl_numeric_diff(...)

Arguments

...

Numeric difference thresholds, ordered from strictest to most lenient (e.g., 1, 5).

Value

A comparison-level object for use in il_compare().

Examples

il_spec() |>
  il_compare(age, cl_numeric_diff(1, 5))
#> Linkage Specification
#>   Comparisons (1):
#>     age : numeric_diff
#>   Blocking rules: (none)