Learn R Programming

ADCT (version 0.1.0)

TwoGrpCopriEndpt.SimPower: Power Simulation for Two Group Two Coprimary Endpoints Group Sequential Design.

Description

Given the group sequential design information, returns the simulated overall power.

Usage

TwoGrpCopriEndpt.SimPower(mu11,mu12, mu21, mu22, rho, tau, alpha1, alpha2, alternative , Nmax, B)

Arguments

mu11
standardized mean value for coprimary endpoint 1 in group 1.
mu12
standardized mean value for coprimary endpoint 2 in group 1.
mu21
standardized mean value for coprimary endpoint 1 in group 2.
mu22
standardized mean value for coprimary endpoint 2 in group 2.
rho
correlation coefficient between two coprimary endpoints.
tau
information time for the interim analysis.
alpha1
significant level for the first stage.
alpha2
significant level for the second stage.
alternative
indicates the alternative hypothesis and must be one of "two.sided" or "two.sided".
Nmax
maximum sample size per group.
B
the simulation iterative time.

Value

The evaluated power with attributes and computational error.

References

Chang, M. (2014). Adaptive design theory and implementation using SAS and R. CRC Press.

Examples

Run this code
# Example in Chang (2014) page  275
TwoGrpCopriEndpt.SimPower(mu11=0.2,mu12=0.25, mu21=0.005, mu22=0.015, rho=0.25,
tau=0.5, alpha1=0.0025, alpha2=0.024, alternative = "two.sided",Nmax=584, B=10000)

Run the code above in your browser using DataLab