View source: R/average_power.R
average.power.coxph | R Documentation |
Compute the average power of many Cox regression models for a given number of events, p-value threshold, vector of effect sizes (log hazard ratio),and variance of predictor variables
average.power.coxph(n, alpha, logHR, v)
n |
number of events (scalar) |
alpha |
p-value threshold (scalar) |
logHR |
log hazard ratio (vector) |
v |
variance of predictor variable (vector) |
Average power estimate for multiple testing procedure
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.
power.cox
for more details about power calculation of single-predictor Cox regression model. The power calculation is based on asymptotic normal approximation.
logHR = log(rep(c(1, 2),c(900, 100)));
v = rep(1, 1000);
average.power.coxph(n = 50, alpha = 0.05, logHR = logHR, v = v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.