frontierpower: Calculate Frontier power from number of events

View source: R/power_functions.R

frontierpowerR Documentation

Calculate Frontier power from number of events

Description

Calculate Frontier power from number of events

Usage

frontierpower(
  events,
  HR,
  Eratio,
  Rratio = 1,
  startpower = 0.5,
  alpha1 = 0.025,
  HRbound = 1,
  iter = 10
)

Arguments

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.

Value

Power as a decimal

Author(s)

James Bell

References

Bell J, Power Calculations for Time-to-Event Trials Using Predicted Event Proportions, 2019, paper under review.

Examples

frontierpower(events=300,HR=0.7,Eratio=1.2,Rratio=1.5,alpha1=0.025)

gestate documentation built on April 26, 2023, 5:10 p.m.