effectiveN.oneProp: Calculating effective maximum sample size to be used in...

Description Usage Arguments Value Author(s) References Examples

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

1
2
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 : θ > θ_0 (default), and left for H_1 : θ < θ_0.

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 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

1

MSPRT documentation built on Nov. 13, 2020, 5:07 p.m.