powered by
It creates a data frame with the first digits and the differences from Benford's Law in decreasing order.
suspectsTable(bfd, by="absolute.diff")
an object of class "Benford". See benford.
benford
a character string selecting how to order the digits.It can be 'abs.excess.summation','difference','squared.diff' or'absolute.diff'.
A data frame with 2 variables: digits and the group chosen in by.
by
# 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