| SlowGoodness | R Documentation | 
An app to illustrate use of the chi-square statistic to test for goodness of fit. The P-value is computed by resampling, and the resamples are done one at a time. A histogram of resampled chi-square statistics is displayed after each resample, and summary information is output to the console.
SlowGoodness(x,p)
x | 
 a one-dimensional table, or a vector of observed counts  | 
p | 
 vector of null probabilities  | 
Graphical and numerical output
Homer White hwhite0@georgetowncollege.edu
## Not run: 
throws <- c(one=8,two=18,three=11,four=7,five=9,six=7)
SlowGoodness(throws,p=rep(1/6,6))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.