ump.match.oneProp: Finding the "evidence threshold (\(\delta\))" in one-sample proportion tests in a fixed design
Description
In one-sample proportion tests in a fixed design, this function solves for \(\delta\) by matching the rejection region from the UMPBT with that of the corresponding UMP (fixed design) test. Basically, this solves equation (20) in the supplemental information.
Usage
ump.match.oneProp(side = "right", type1 = 0.005, n, p0 = 0.5)
Arguments
side
a character; direction of the alternative hypothesis H1.
Has to be one of "right" or "left".
Default:"right".
type1
a numeric in (0,1); prespecified Type 1 error probability.
Default:0.005.
n
a positive numeric (integer); sample size to be used.
p0
a numeric in (0,1); the hypothesized value of proportion under the simple null hypothesis.
Default is 0.5.
References
MSPRT: Supplemental information
Johnson, Valen E., Uniformly most powerful Bayesian tests., Ann. of Stat., 41, (4), 2013, pp. 1716-1741