editrules package aims to provide an environment to conveniently
define, read and check recordwise data constraints including
Linear (in)equality constraints for numerical data,
Constraints on value combinations of categorical data
Conditional constraints on numerical and/or mixed data
In literature these constraints, or restrictions are refered to as “edits”.
editrules can perform common rule
set manipulations like variable elimination and value substitution, and
offers error localization functionality based on the
(generalized) paradigm of Fellegi and Holt. Under this paradigm, one determines
the smallest (weighted) number of variables to adapt such that no (additional or derived)
rules are violated. The paradigm is based on the assumption that errors
are distributed randomly over the variables and there is no detectable cause of
error. It also decouples the detection of corrupt variables from their
correction. For some types of error, such as sign flips, typing errors or
rounding errors, this assumption does not hold. These errors can be detected
and are closely related to their resolution. The reader is referred to the
deducorrect package for treating such errors.
editrules provides several methods for creating edits from a
data.frame or a text file.
||Read conditional numerical, numerical and categorical constraints from textfile|
||Create conditional numerical, numerical and categorical constraints|
||Create a linear constraint matrix for numerical data|
||Create value combination constraints for categorical data|
editrules provides several method for checking
data.frames with edits
||Find out which record violates which edit.|
||Localize erroneous fields using Fellegi and Holt's principle.|
||Low-level error localization function using B&B algorithm|
Note that you can call
editrules provides several methods for manipulating edits
||Substitute a value in a set of rules|
||Derive implied rules by variable elimination|
||Remove unconstraint variables|
||Check for contradictions|
||Find duplicated rules|
||Decompose rules into independent blocks|
||Decouple conditional edits into disjunct edit sets|
||Decompose rules in blocks and decouple conditinal edits|
|| Generate all nonredundant implicit edits (
editrules provides several methods for plotting and coercion.
||Plot edit-variable connectivity graph|
|| Coerce to edit-variable connectivity
|| Coerce edits to
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.