simon2stage {lrstat}R Documentation

Simon's two-stage design

Description

Obtains Simon's two-stage minimax, admissible, and optimal designs.

Usage

simon2stage(
  alpha = NA_real_,
  beta = NA_real_,
  piH0 = NA_real_,
  pi = NA_real_,
  n_max = 110L
)

Arguments

alpha

Type I error rate (one-sided).

beta

Type II error rate (1-power).

piH0

Response probability under the null hypothesis.

pi

Response probability under the alternative hypothesis.

n_max

Upper limit for sample size, defaults to 110.

Value

A data frame containing the following variables:

Here w is the weight in the objective function: w*n + (1-w)*EN0.

Author(s)

Kaifeng Lu, kaifenglu@gmail.com

Examples

simon2stage(0.05, 0.15, 0.1, 0.3)


[Package lrstat version 0.2.6 Index]