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

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

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

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.