Macro - Benford's law
Macro - Benford's law Benford's Law Fraud detectionDownloads First digits lawSite Map
Home Page | Population | Sampling | Fraud | Other | Tutorial | Macros
Macro - Benford's law
Sub RunBen()
'
' checks for Benford's Law using the following parameters
'
' Infile - name of the file to be checked
' Column - name of the column value to be checked
' this will be a numeric column
' Report - where the report is to be written
' Bentype - type of benford report - F1, F2, F3, L1, L2, or D2
' Note that the sequence of parameters does not matter
'

Dim oEZ As New cEZ

oEZ.Benford _
Infile:=BASEDIR & "clmdensp.txt", _
Report:=BASEDIR & "clmdensp.ben", _
Column:="paidamt", _
BenType:="F1"

LoadSheet _
ToSheet:="$Debug", _
Infile:=BASEDIR & "clmdensp.ben"

Set oEZ = Nothing

End Sub

 

 

 

 

Main Page

Complete Auditor resources
Links | Privacy Policy | FAQ | Downloads | Trademarks
Web Page last updated on 04-20-2008
© EZ-R Stats, LLC 2005-2007