showXtremeEventsDis: Show Extreme Events from a Discrete Distribution

Description Usage Arguments Value Examples

View source: R/DisHypothesisTests.R

Description

Show Extreme Events from a Discrete Distribution

Usage

1
showXtremeEventsDis(testID, obsVal, expVal, xVals, probFun, ...)

Arguments

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

Value

graph coloring events by how extreme they are under the null hypothesis

Examples

1
showXtremeEventsDis("Prop. Test", 3, 5, 0:10, probFun = dbinom, size = 10, prob = 0.5)

mcStats documentation built on March 26, 2020, 7:37 p.m.