Learn R Programming

benford.analysis (version 0.1.5)

dfactor: Gets the Distortion Factor of a Benford object

Description

It gets the Distortion Factor of a Benford object. See the section value of benford.

Usage

dfactor(bfd)

Arguments

bfd

an object of class "Benford". See benford.

Value

The distortion factor.

Examples

Run this code
# NOT RUN {
data(corporate.payment) #gets data 
cp <- benford(corporate.payment$Amount) #generates benford object
dfactor(cp) # equivalent to cp$distortion.factor
# }

Run the code above in your browser using DataLab