Description Usage Arguments Value Examples
View source: R/DisHypothesisTests.R
Show Extreme Events from a Discrete Distribution
1 | showXtremeEventsDis(testID, obsVal, expVal, xVals, probFun, ...)
|
testID |
name of test being performed. This is used to title the graph |
obsVal |
observed x value |
expVal |
expected x value |
xVals |
domain of x (possible values) |
probFun |
probability mass function for the given distribution |
... |
addition arguments passed to probFun |
graph coloring events by how extreme they are under the null hypothesis
1 | showXtremeEventsDis("Prop. Test", 3, 5, 0:10, probFun = dbinom, size = 10, prob = 0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.