Learn R Programming

benford.analysis (version 0.1.5)

MAD: Gets the MAD of a Benford object

Description

It gets the Mean Absolute Deviation (MAD) of a Benford object. See the section value of benford.

Usage

MAD(bfd)

Arguments

bfd

an object of class "Benford". See benford.

Value

The MAD.

Examples

Run this code
# NOT RUN {
data(census.2000_2010) #gets data
c2010 <- benford(census.2000_2010$pop.2010) #generates benford object
MAD(c2010) #equivalent to c2010$MAD
# }

Run the code above in your browser using DataLab