MIDN-package: Nearly exact sample size calculation for exact powerful...

Description Author(s) References Examples

Description

Implementation of the mid-n algorithms presented in Wellek S (2015) Statistica Neerlandica 69, 358-373 for exact sample size calculation for superiority trials with binary outcome.

Author(s)

Stefan Wellek <stefan.wellek@zi-mannheim.de>
Peter Ziegler <peter.ziegler@zi-mannheim.de>

Maintainer:
Peter Ziegler <peter.ziegler@zi-mannheim.de>

References

Wellek S: Nearly exact sample size calculation for powerful nonrandomized tests for differences between binomial proportions. Statistica Neerlandica 69 (2015), 358-373.

Examples

1
2
3
4
5
6
7
8
9
result1 <- fisher_boschloo_midN(0.025,0.0001,0.95,0.8,0.8,2,1)
POWEX <- result1[5]
result1  # shows values of vector result1
POWEX    # shows value of POWEX

result2 <- McNem_Score_midn(0.025,0.0001,0.585,0.315,0.9)
POWEX <- result2[3]
result2  # shows values of vector result2
POWEX    # shows value of POWEX

Example output

Loading required package: BiasedUrn
 [1] 104.0000000  52.0000000 106.0000000  53.0000000   0.8044779 122.0000000
 [7]  61.0000000   0.8024664 114.0000000  57.0000000
[1] 0.8044779
[1] 126.0000000 127.0000000   0.9022058 134.0000000   0.9025275 131.0000000
[1] 0.9022058

MIDN documentation built on May 2, 2019, 2:40 a.m.