Description Usage Arguments Value Examples
It gets the Chi-squared test for a Benford object.
See the section value of benford
.
1 | chisq(bfd)
|
bfd |
an object of class "Benford". See |
A list with class "htest" containing the results of the Chi-squared test.
1 2 3 | data(census.2009) #gets data
c2009 <- benford(census.2009$pop.2009) #generates benford object
chisq(c2009) # equivalent to c2009$stats$chisq
|
Pearson's Chi-squared test
data: census.2009$pop.2009
X-squared = 107.16, df = 89, p-value = 0.09222
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.