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

Description Usage Arguments Value Examples

Description

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

Usage

1
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

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

Example output



benford.analysis documentation built on May 2, 2019, 10 a.m.