Learn R Programming

benford.analysis (version 0.1.5)

chisq: Gets the Chi-squared test of a Benford object

Description

It gets the Chi-squared test for a Benford object. See the section value of benford.

Usage

chisq(bfd)

Arguments

bfd

an object of class "Benford". See benford.

Value

A list with class "htest" containing the results of the Chi-squared test.

Examples

Run this code
# NOT RUN {
data(census.2009) #gets data
c2009 <- benford(census.2009$pop.2009) #generates benford object
chisq(c2009) # equivalent to c2009$stats$chisq
# }

Run the code above in your browser using DataLab