Benford's Law

Prerequisites

This example builds on the benford.analysis and rattle package in r. If you don’t have the package installed you can type the following:

install.packages("benford.analysis")
install.packages("rattle")

To load the package you can type the following:

library(benford.analysis)

Basic example

The benford analysis package comes with a couple of datasets.

Avatar
Nikolaos Korfiatis
Associate Professor of Business Analytics

Associate Professor in Business Analytics, University of East Anglia.