continuous: calculates conditional power for Continuous or Binary...

Description Usage Arguments Value Author(s) References Examples

View source: R/conpower.R

Description

This package will calculate conditional power for stopping a trial for futility or stop for efficacy. It is possible to calculate the conditional power of the study to reject the null hypothesis given the current results obtained from gsDesign (Group sequential designs). An user has to first calculate the sample size for any types of endpoint: Continuous, Binary and Time-to-Event based on R-package gsDesign. Then using this results one can calculate the Conditional power, which is one of the tools, when computed over a range of alternatives, can be of guidance in deciding whether to continue the study given those available information.

Usage

1
continuous(n, N, delta, se, delta_assumed, zfinal)

Arguments

n

Sample size obtained at Interim stage/look

N

Total Sample size at Final Stage/look

delta

Observed Treatment Effect at Interim which needs to calculate Test Statistic (Z)

se

Standard Error for Mean(delta) difference

delta_assumed

Assumed treatment effect for future/remaining patients

zfinal

Final stage/Look Z-Statistic value which was obtained while planning analysis in Design Stage

Value

conditional power for specified (continuous or binary) endpoint

Author(s)

Mohammad Anamul Haque, Tomasz Burzykowski, Emmanuel Quinaux and Nahid Sultana

References

Jennison, C. and Turnbull, B.W. (2005). Group Sequential Methods with Applications to Clinical Trials. Boca Raton: Chapman and Hall.

Chang, M. (2015). Introductory Adaptive Trial Designs: A Practical Guide with R. CRC press, Chapman and Hall.

Examples

1
2
continuous(n=10, N=25, delta=1, se=2, delta_assumed=1, zfinal=1.97) #for Continous endpoint
continuous(n=200, N=294, delta=0.15, se=0.07, delta_assumed=0.20, zfinal=1.99) #for binary endpoint

haquemdanamul/condpowerct documentation built on May 6, 2020, 9:31 a.m.