chisq {benford.analysis} | R Documentation |
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 |
Value
A list with class "htest" containing the results of the Chi-squared test.
Examples
data(census.2009) #gets data
c2009 <- benford(census.2009$pop.2009) #generates benford object
chisq(c2009) # equivalent to c2009$stats$chisq
[Package benford.analysis version 0.1.5 Index]