Learn R Programming

iMediate (version 0.5.5)

S.test: S test of Berger (1996)

Description

S.test conducts the S test proposed in Berger (1996)

Usage

S.test(u1, u2, alpha)

Arguments

u1

a numerical value between 0 and 1.

u2

a numerical value between 0 and 1.

alpha

a numerical variable specifying the significance level for the test.

Value

If (u1, u2) falls in the rejection region of the S test, a 1 is returned; otherwise a 0 is returned.

References

Berger, R.L. (1997) Likelihood ratio tests and intersection-union tests. Advances in statistical decision theory and applications. Birkh\"auser Boston, 225-237.

Examples

Run this code
# NOT RUN {
S.test(0.1, 0.4, 0.05)

# }

Run the code above in your browser using DataLab