MPbinomial:
Most Powerful Binomial Test
Description
The function returns the level alpha MP test for the testing the hypothesis H:p=p0 against K:p=p_1 as ensured by the application of Neyman-Pearson lemma.
Usage
MPbinomial(Hp, Kp, alpha, n)
Arguments
Hp
the value of p under hypothesis H
Kp
the value of p under hypothesis K