calculate_MDE: Calculate minimal detectable effect for binary variable

View source: R/calculate_MDE.R

calculate_MDER Documentation

Calculate minimal detectable effect for binary variable

Description

Calculate the minimal detectable effect (Hazard Ratio) given an observed number of events for a binary variable (based on Schoenfeld's formula)

Usage

calculate_MDE(number_of_events, alpha = 0.05, v = 0.5)

Arguments

number_of_events

Number of events

alpha

1-sided alpha (Type I error)

v

Proportion of treatment allocation (default is 1:1)

Value

Minimal detectable effect


th-zelniker/TIMI documentation built on Oct. 1, 2022, 2 p.m.