power.cox: Compute the power of a single-predictor Cox regression model
Description
Use the formula of Hsieh and Lavori (2000) to compute the power of a single-predictor Cox model, which is based on asymptotic normal approximation.
Usage
power.cox(n, alpha, logHR, v)
Value
Vector of power estimates for two-sided test
Arguments
n
number of events (scalar)
alpha
p-value threshold (scalar)
logHR
log hazard ratio (vector)
v
variance of predictor variable (vector)
References
Hsieh, FY and Lavori, Philip W (2000) Sample-size calculations for the Cox proportional hazards regression model with non-binary covariates. Controlled Clinical Trials 21(6):552-560.