n2r: Sample size reassessment rules

Usage Arguments Value Author(s) Examples

Usage

1
2
n2r(S1OS, delta0, n1, adj = FALSE, n2min = 0, n2max = Inf, cf = 1,
  alpha = 0.025, beta = 0.2)

Arguments

S1OS

interim estimate of the standard deviation

delta0

assumed effect size

n1

first-stage sample size

adj

should the adjusted rule be used

n2min

minimum second-stage sample size

n2max

maximum second-stage sample size

cf

correction facton

alpha

significance level (one-sided)

beta

targeted Type II error rate

Value

adjusted second-stage sample size

Author(s)

Florian Klinglmueller

Examples

1
2
3
4
5
6
## Example from Kieser et al. (2003)
n1 = 15
S1OS = 6
delta0 = 5.5
n2r(S1OS,delta0,n1)
n2r(S1OS,delta0,n1,adj=T)

floatofmath/blindConfidence documentation built on May 16, 2019, 1:20 p.m.