Learn R Programming

⚠️There's a newer version (1.4) of this package.Take me there.

BeyondBenford (version 1.0)

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

538

Version

1.0

License

GPL-2

Maintainer

Blondeau Silva Stephane

Last Published

December 3rd, 2018

Functions in BeyondBenford (1.0)

Benf.val

Benford's values
census

Alabama census
Blon.val

Blondeau Da Silva's values
address_AixesurVienne

Street addresses of Aixe-sur-Vienne
dat.distr

Data distribution
chi2

Pearson's chi-squared test
obs.numb.dig

Frequency of each figure at a given position
digit.distr

Distribution of figures in a given position
theor.distr.val

Theoretical distribution
address_Limoges

Street addresses of Limoges
address_PierreBuffiere

Street addresses of Pierre-Buffiere
BeyondBenford-package

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