calculate_MDE_WinRatio: Calculate minimal detectable effect for binary variable using...

View source: R/calculate_MDE_WinRatio.R

calculate_MDE_WinRatioR Documentation

Calculate minimal detectable effect for binary variable using the WinRatio

Description

Calculate the minimal detectable effect (Win Ratio) given the total sample size (Yu and Ganju, Statistics in Medicine 2021)

Usage

calculate_MDE_WinRatio(sample_size, P_tie, alpha = 0.05, v = 0.5)

Arguments

sample_size

Total Sample Size

P_tie

Proportion of ties

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.