Learn R Programming

BeyondBenford (version 1.4)

Compare the Goodness of Fit of Benford's and Blondeau Da Silva's Digit Distributions to a Given Dataset

Description

Allows to compare the goodness of fit of Benford's and Blondeau Da Silva's digit distributions in a dataset. It is used to check whether the data distribution is consistent with theoretical distributions highlighted by Blondeau Da Silva or not (through the dat.distr() function): this ideal theoretical distribution must be at least approximately followed by the data for the use of Blondeau Da Silva's model to be well-founded. It also enables to plot histograms of digit distributions, both observed in the dataset and given by the two theoretical approaches (with the digit.ditr() function). Finally, it proposes to quantify the goodness of fit via Pearson's chi-squared test (with the chi2() function).

Copy Link

Version

Install

install.packages('BeyondBenford')

Monthly Downloads

334

Version

1.4

License

GPL-2

Maintainer

Blondeau Silva Stephane

Last Published

July 24th, 2020

Functions in BeyondBenford (1.4)

prep

Data set preparation
Blon.val.sd

Blondeau Da Silva's standard deviations
digit.distr

Distribution of figures in a given position
obs.numb.dig

Frequency of each figure at a given position
theor.distr.val

Theoretical distribution
address_AixesurVienne

Street addresses of Aixe-sur-Vienne
address_Limoges

Street addresses of Limoges
address_PierreBuffiere

Street addresses of Pierre-Buffiere
census

Alabama census
Benf.val

Benford's values
chi2

Pearson's chi-squared test
dat.distr

Data distribution
BeyondBenford-package

Compare the goodness of fit of Benford's and Blondeau Da Silva's digit distributions to a given dataset
Blon.val

Blondeau Da Silva's values