power.cox {FDRsampsize} | R Documentation |
Compute the power of a single-predictor Cox regression model
Description
Use the formula of Hseih and Lavori (2000) to compute the power of a single-predictor Cox model.
Usage
power.cox (n, alpha, logHR, v)
Arguments
n |
number of events (scalar) |
alpha |
p-value threshold (scalar) |
logHR |
log hazard ratio (vector) |
v |
variance of predictor variable (vector) |
Value
vector of power estimates for two-sided test
References
Hsieh, FY and Lavori, Philip W (2000) Sample-size calculations for the Cox proportional hazards regression model with nonbinary covariates. Controlled Clinical Trials 21(6):552-560.
Examples
power.cox # show the power.cox function
res=fdr.sampsize(fdr=0.1,
ave.pow=0.8,
pow.func=power.cox,
eff.size=rep(c(log(2),0),c(100,900)),
null.effect=0,
v=1)
res
[Package FDRsampsize version 1.0 Index]