You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Find errors in data given a set of validation rules. The errorlocate
helps to identify obvious errors in raw datasets.
It works in tandem with the package validate. With validate you
formulate data validation rules to which the data must comply.
For example:
“age cannot be negative”: age >= 0.
“if a person is married, he must be older then 16 years”:
if (married ==TRUE) age > 16.
“Profit is turnover minus cost”: profit == turnover - cost.
While validate can check if a record is valid or not, it does not
identify which of the variables are responsible for the invalidation.
This may seem a simple task, but is actually quite tricky: a set of
validation rules forms a web of dependent variables: changing the value
of an invalid record to repair for rule 1, may invalidate the record for
rule 2.
errorlocate provides a small framework for record based error
detection and implements the Fellegi Holt algorithm. This algorithm
assumes there is no other information available then the values of a
record and a set of validation rules. The algorithm minimizes the
(weighted) number of values that need to be adjusted to remove the
invalidation.