hwx.test
, xtest
or mtest
can create data for a frequency distribution plot of one of the four test statistics. Then these functions can be used to make the plot. The user will not normally call these functions. Instead, they will be called by hwx.test
provided histobins
is positive.defaultHistobounds(ostats, statID, m)plotHistogram(ostats, statID, m, histobins, histobounds, histoData,
showCurve = TRUE, color1 = "gray40", color2 = "lightcoral",
ntrials = 0)
LLR
, Prob
, U
and Chisq
.xtest
or mtest
functioncolor2
is the P value.defaultHistobounds
returns a vector containing the left and right boundaries for the x axis.plotHistogram
does not return a value, but plots the histogram.
hwx.test