plotBoundary: A function to plot the boundary of the decision region

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function attempts to plot the boundary of the decision region, but currently falls flat. Will be rewritten.

Usage

1
2
plotBoundary(b1, b0, p, glrTables = NULL, tol=1e-7,
             legend=FALSE, textXOffset=2, textYSkip=2)

Arguments

b1

The acceptance boundary value (corresponds to the boundary b_1 in the appendix of reference)

b0

The rejection boundary value (corresponds to the boundary b_0 in the appendix of reference)

p

The vector of probabilities, (p_0, p_1) with p_0 < p_1.

glrTables

A previously computed set of likelihood functions, to speed up computation for the same hypothesis testing problem. This can speed up computations.

tol

The tolerance, default of 1e-7

legend

A flag indicating if a legend is desired or not, default false

textXOffset

Horizontal offset for legend text

textYSkip

Vertical skip for legend text

Details

This essentially computes the recursion and the probabilities of hitting the boundaries and returns a ggplot2 object

Value

A ggplot2 object

Author(s)

Balasubramanian Narasimhan

See Also

See Also glrSearch

Examples

1
plotBoundary(b1=2.8, b0=3.3, p=c(.5, .75))

Example output

Loading required package: ggplot2
Loading required package: shiny
Warning messages:
1: Removed 2 rows containing missing values (geom_path). 
2: Removed 4 rows containing missing values (geom_path). 

sglr documentation built on May 1, 2019, 7:14 p.m.