Description Usage Arguments Value Author(s) References Examples

Given the group sequential design information, returns the conditional power.

1 | ```
TwoArms.CondPower(mu1, mu2, sigma1, sigma2, n1, n2, rho, tau, alpha2, alternative)
``` |

`mu1` |
mean value for the first stage (endpoint 1). |

`mu2` |
mean value for the second stage (endpoint 2). |

`sigma1` |
standard deviation for the first stage. |

`sigma2` |
standard deviation for the second stage. |

`n1` |
sample size for the first stage. |

`n2` |
sample size for the second stage. |

`rho` |
correlation coefficient between two coprimary endpoints. |

`tau` |
information time for the interim analysis. |

`alpha2` |
significant level for the second stage. |

`alternative` |
indicates the alternative hypothesis and must be one of |

The evaluated power with attributes and computational error.

Yalin Zhu

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

1 2 3 4 5 6 7 | ```
# Example in Chang (2014) page 278
TwoArms.CondPower(mu1=0.28, sigma1=1.9, mu2=0.35, sigma2=2.2, n1=340, n2=340,
rho=0.3, tau=0.5, alpha2=0.024, alternative = "one.sided")
TwoArms.CondPower(mu1=0.28, sigma1=1.9, mu2=0.35, sigma2=2.2, n1=340, n2=482,
rho=0.3, tau=0.5, alpha2=0.024, alternative = "one.sided")
TwoArms.CondPower(mu1=0.32, sigma1=2, mu2=0.4, sigma2=1.8, n1=340, n2=340,
rho=0.3, tau=0.5, alpha2=0.024, alternative = "one.sided")
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.