Learn R Programming

BenfordTests (version 1.2.0)

qbenf: Quantile Function for Benford's Distribution

Description

Returns the complete quantile function for Benford's distribution with a given number of first digits.

Usage

qbenf(digits = 1)

Arguments

digits
An integer determining the number of first digits for which the qdf is returned, i.e. 1 for 1:9, 2 for 10:99 etc.

Value

Returns an object of class "table" containing the expected quantile function of Benford's distribution with a given number of digits.

References

Benford, F. (1938) The Law of Anomalous Numbers. Proceedings of the American Philosophical Society. 78, 551--572.

See Also

pbenf; rbenf

Examples

Run this code
qbenf(1)

qbenf(1)==cumsum(pbenf(1))

Run the code above in your browser using DataLab