Description Usage Arguments Value Author(s) References Examples
View source: R/power_functions.R
Calculate Frontier power from number of events
1 2 3 4 5 6 7 8 9 | frontierpower(
events,
HR,
Eratio,
Rratio = 1,
startpower = 0.5,
alpha1 = 0.025,
iter = 10
)
|
events |
Number of events. |
HR |
Hazard Ratio. Values below 1 indicate a benefit to the active arm vs control. |
Eratio |
Event ratio. |
Rratio |
Randomisation ratio. Default=1. |
startpower |
Initial estimate of power. Default=0.5. |
alpha1 |
1-sided alpha. Default=0.025. |
iter |
Number of iterations to perform. Default=10. |
Power as a decimal
James Bell
Bell J, Power Calculations for Time-to-Event Trials Using Predicted Event Proportions, 2019, paper under review.
1 | frontierpower(events=300,HR=0.7,Eratio=1.2,Rratio=1.5,alpha1=0.025)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.