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. right for H_1 : \theta > \theta_0 (default), and left for H_1 : \theta < \theta_0.

Type1

Numeric in [0,1]. Prespecified Type I error probability. Default: 0.005.

theta0

Numeric. Hypothesized value of effect size (\theta_0) under H_0. Default: 0.5.

plot.it

Logical. If TRUE (default), returns a plot. Otherwise it doesn't.

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)

[Package MSPRT version 3.0 Index]