powered by
It gets the Chi-squared test for a Benford object. See the section value of benford.
benford
chisq(bfd)
an object of class "Benford". See benford.
A list with class "htest" containing the results of the Chi-squared test.
# 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