powered by
This function attempts to plot the boundary of the decision region, but currently falls flat. Will be rewritten.
plotBoundary(b1, b0, p, glrTables = NULL, tol = 1e-7, legend =FALSE, textXOffset = 2, textYSkip = 2)
The acceptance boundary value (corresponds to the boundary \(b_1\) in the appendix of reference)
The rejection boundary value (corresponds to the boundary \(b_0\) in the appendix of reference)
The vector of probabilities, \((p_0, p_1)\) with \(p_0 < p_1\).
A previously computed set of likelihood functions, to speed up computation for the same hypothesis testing problem. This can speed up computations.
The tolerance, default of 1e-7
A flag indicating if a legend is desired or not, default false
Horizontal offset for legend text
Vertical skip for legend text
A ggplot2 object
This essentially computes the recursion and the probabilities of hitting the boundaries and returns a ggplot2 object
See Also glrSearch
glrSearch
# NOT RUN { plotBoundary(b1=2.8, b0=3.3, p=c(.5, .75)) # }
Run the code above in your browser using DataLab