View source: R/power_functions.R
frontierpower | R Documentation |
Calculate Frontier power from number of events
frontierpower(
events,
HR,
Eratio,
Rratio = 1,
startpower = 0.5,
alpha1 = 0.025,
HRbound = 1,
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. |
HRbound |
HRvalue to test against. Default=1 (superiority). |
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.
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.