powered by
Show Extreme Events from a Discrete Distribution
showXtremeEventsDis(testID, obsVal, expVal, xVals, probFun, ...)
name of test being performed. This is used to title the graph
observed x value
expected x value
domain of x (possible values)
probability mass function for the given distribution
addition arguments passed to probFun
graph coloring events by how extreme they are under the null hypothesis
# NOT RUN { showXtremeEventsDis("Prop. Test", 3, 5, 0:10, probFun = dbinom, size = 10, prob = 0.5) # }
Run the code above in your browser using DataLab