50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

MSPRT (version 2.1)

umpbt.twoZ: The UMPBT alternative in two-sample Z-tests

Description

This function finds the UMPBT alternative in two-sample Z-tests. The value of hypothesized parameter, the difference between the population means of Group-2 and Group-1, under the simple null hypothesis is set at 0.

Usage

umpbt.twoZ(side = "right", type1 = 0.005, n1, n2, sigma0 = 1)

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.

n1

a positive numeric (integer); sample size from Group-1 to be used.

n2

a positive numeric (integer); sample size from Group-2 to be used.

sigma0

a positive numeric; the known common population standard deviation.

Default: 1.

Value

Returns a numeric which is the UMPBT alternative in the two-sample Z-test.

References

MSPRT: main article and supplemental information

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

Johnson, Valen E., Revised standards for statistical evidence., Proceedings of the National Academy of Sciences, 16, 1945. (Specially it's supplemental file)

Examples

Run this code
# NOT RUN {
umpbt.twoZ(n1= 60, n2= 60)
# }

Run the code above in your browser using DataLab