qbenf: Quantile Function for Benford's Distribution

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/Benford_tests.R

Description

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

Usage

1
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.

Author(s)

Dieter William Joenssen Dieter.Joenssen@googlemail.com

References

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

See Also

pbenf; rbenf

Examples

1
2
3
qbenf(1)

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

Example output

        1         2         3         4         5         6         7         8 
0.3010300 0.4771213 0.6020600 0.6989700 0.7781513 0.8450980 0.9030900 0.9542425 
        9 
1.0000000 
   1    2    3    4    5    6    7    8    9 
TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE 

BenfordTests documentation built on May 1, 2019, 8:07 p.m.