lgrkPower: Unstratified (ordinary) logrank power

Description Usage Arguments Details Value Author(s) References Examples

View source: R/lgrkPower.R

Description

Computes the power for the unstratified (ordinary) logrank statistic for two group comparison.

Usage

1
lgrkPower(hr, nevent, alpha = 0.05, rprob = 0.5)

Arguments

hr

hazard ratio

nevent

expected number of events

alpha

two-sided significance level

rprob

randomization probability

Details

Uses the formula at the bottom of p.317 from Schoenfeld (Biometrika, 1981) where the beta should be 1 - beta.

Value

power

logrank power

Author(s)

Eric Leifer, James Troendle

References

Schoenfeld, D. The asymptotic properties of nonparametric tests for comparing survival distributions. Biometrika. 1981; 68: 316-319.

Examples

1
2
3
4
5
 hr <- 0.5
 nevent <- 98
 lgrkPower(hr, nevent, alpha = 0.05,  rprob = 0.5)
 # $power
 # [1] 0.9293463

EricSLeifer/factorial2x2 documentation built on April 24, 2020, 4:27 a.m.