effectiveN.oneProp {MSPRT} | R Documentation |
Calculating effective maximum sample size to be used in designing the MSPRT in one-sample proportion test
Description
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.
Usage
effectiveN.oneProp(N, side = "right", Type1 = 0.005, theta0 = 0.5,
plot.it = T)
Arguments
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 ( |
plot.it |
Logical. If |
Value
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.
Author(s)
Sandipan Pramanik, Valen E. Johnson and Anirban Bhattacharya
References
Pramanik S., Johnson V. E. and Bhattacharya A. (2020+). A Modified Sequential Probability Ratio Test. [Arxiv]
Examples
effectiveN.oneProp(N = 30)