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

Description Usage Arguments Value Examples

Description

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

Usage

1
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

1
2
3
data(census.2009) #gets data
c2009 <- benford(census.2009$pop.2009) #generates benford object
chisq(c2009) # equivalent to c2009$stats$chisq

Example output

	Pearson's Chi-squared test

data:  census.2009$pop.2009
X-squared = 107.16, df = 89, p-value = 0.09222

benford.analysis documentation built on May 2, 2019, 10 a.m.