Learn R Programming

SPRT (version 1.0)

boundary.fn: boundary.fn internal function

Description

Return a numerical 2x2 matrix with the slope and intercept of H0 and H1 acceptance regions under the null and alternative hypotheses.

Usage

boundary.fn(distribution = "bernoulli", type1 = 0.05, type2 = 0.2, h0, h1)

Arguments

distribution
a character string specifying the distribution. Must be one of "bernoulli" (default), "normal", "exponential" or "poisson".
type1
the type I error. A number between 0 and 1.
type2
the type II error. A number between 0 and 1.
h0
the expected value of the random variable under the null hypothesis.
h1
the expected value of the random variable under the alternative hypothesis.

Details

This function is an internal function and need not be accessed directly. Its output is available directly from SPRT under the k.boundaries name.

References

Ghosh, B.K. and Sen, P.K. (1991). Handbook of Sequential Analysis, Marcel Dekker, New York. Wald, A. (1947). Sequential Analysis, Dover, New York.

See Also

SPRT