Learn R Programming

benford.analysis (version 0.1.5)

suspectsTable: Shows the first digits ordered by the mains discrepancies from Benford's Law

Description

It creates a data frame with the first digits and the differences from Benford's Law in decreasing order.

Usage

suspectsTable(bfd, by="absolute.diff")

Arguments

bfd

an object of class "Benford". See benford.

by

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

Value

A data frame with 2 variables: digits and the group chosen in by.

Examples

Run this code
# NOT RUN {
data(corporate.payment) #gets data 
cp <- benford(corporate.payment$Amount) #generates benford object
suspectsTable(cp) 
# }

Run the code above in your browser using DataLab