Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getSuspects

Gets the 'suspicious' observations according to Benford's Law


Description

It gets the original data from the 'suspicious' digits groups according to benford analysis.

Usage

getSuspects(bfd, data, by="absolute.diff", how.many=2)

Arguments

bfd

an object of class "Benford". See benford.

data

the original data used for the benford analysis.

by

a character string selecting how to order the digits.It can be 'abs.excess.summation','difference','squared.diff' or'absolute.diff'.

how.many

how many groups of digits to get.

Value

The 'suspicious' observations from the original data.

Examples

data(lakes.perimeter) #gets data
lk <- benford(lakes.perimeter[,1]) #generates benford object
suspects <- getSuspects(lk, lakes.perimeter)

benford.analysis

Benford Analysis for Data Validation and Forensic Analytics

v0.1.5
GPL-3
Authors
Carlos Cinelli
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.