Learn R Programming

MSPRT (version 2.1)

point.umpbt.oneProp: The UMPBT point alternative in one-sample proportion tests

Description

This function finds the UMPBT point alternative, as defined in Johnson (2013), in case of one-sample proportion tests. This is obtained by matching the rejection region of the UMPBT to that of the UMP (or fixed design) test.

Usage

point.umpbt.oneProp(side = "right", type1 = 0.005, n, null = 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); the prespecified Type 1 error probability.

Default: 0.005.

n

a positive integer; number of samples to be used.

null

a numeric in (0,1); the hypothesized value of proportion under the simple null hypothesis.

Default is 0.5.

Value

Returns a numeric which is the UMPBT point alternative as defined in Johnson (2013).

References

Johnson, Valen E., Uniformly most powerful Bayesian tests., Ann. of Stat., 41, (4), 2013, pp. 1716-1741

Examples

Run this code
# NOT RUN {
point.umpbt.oneProp(n= 60, null= .2)
point.umpbt.oneProp(side= "left", n= 60, null= .2)
# }

Run the code above in your browser using DataLab