suspectsTable {benford.analysis}R Documentation

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

data(corporate.payment) #gets data 
cp <- benford(corporate.payment$Amount) #generates benford object
suspectsTable(cp) 

[Package benford.analysis version 0.1.5 Index]