power2events: Calculate Schoenfeld or Event Proportion based event numbers...

View source: R/power_functions.R

power2eventsR Documentation

Calculate Schoenfeld or Event Proportion based event numbers from power

Description

Calculate Schoenfeld or Event Proportion based event numbers from power

Usage

power2events(power, HR, ratio = 1, alpha1 = 0.025, HRbound = 1)

Arguments

power

Desired power (decimal).

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).

Value

Required event number


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