Learn R Programming

benford.analysis (version 0.1.5)

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

Run this code
# NOT RUN {
data(lakes.perimeter) #gets data
lk <- benford(lakes.perimeter[,1]) #generates benford object
suspects <- getSuspects(lk, lakes.perimeter)
# }

Run the code above in your browser using DataLab