Learn R Programming

gestate (version 1.6.0)

events2power: Calculate Schoenfeld or Event Proportion power from number of events

Description

Calculate Schoenfeld or Event Proportion power from number of events

Usage

events2power(events, HR, ratio = 1, alpha1 = 0.025, HRbound = 1)

Value

Power as a decimal

Arguments

events

Number of events.

HR

Hazard Ratio. Values below 1 indicate a benefit to the active arm vs control.

ratio

Randomisation ratio (Schoenfeld), or event ratio (event proportion method). Default=1.

alpha1

1-sided alpha. Default=0.025.

HRbound

HRvalue to test against. Default=1 (superiority).