Description Usage Arguments Value Author(s) References Examples
Given a maximum sample size that is planned to use, this function obtains the maximum sample size (N) that is suggested to use in designing the MSPRT for one-sample proportion tests.
1 2 | effectiveN.oneProp(N, side = "right", Type1 = 0.005, theta0 = 0.5,
plot.it = T)
|
N |
Positive integer. Maximum sample that is intended to use. |
side |
Character. Direction of the composite alternative hypothesis. |
Type1 |
Numeric in [0,1]. Prespecified Type I error probability. Default: 0.005. |
theta0 |
Numeric. Hypothesized value of effect size (θ_0) under H_0. Default: 0.5. |
plot.it |
Logical. If |
Positive integer. This is suggested to use in OCandASN.MSPRT
as the maximum availeble sample size (N) to design the MSPRT for one-sample proportion tests.
Sandipan Pramanik, Valen E. Johnson and Anirban Bhattacharya
Pramanik S., Johnson V. E. and Bhattacharya A. (2020+). A Modified Sequential Probability Ratio Test. [Arxiv]
1 | effectiveN.oneProp(N = 30)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.