
Power calculation testing interaction effect for Cox proportional hazards regression with two covariates for Epidemiological Studies. Both covariates should be binary variables. The formula takes into account the correlation between the two covariates.
powerEpiInt.default0(n,
theta,
p,
psi,
G,
rho2,
alpha = 0.05)
integer. total number of subjects.
numeric. postulated hazard ratio.
numeric. proportion of subjects taking the value one for the covariate of interest.
numeric. proportion of subjects died of the disease of interest.
numeric. a factor adjusting the sample size. The sample size needed to
detect an effect of a prognostic factor with given error probabilities has
to be multiplied by the factor G
when an interaction of the
same magnitude is to be detected.
numeric. square of the correlation between the covariate of interest and the other covariate.
numeric. type I error rate.
The power of the test.
This is an implementation of the power calculation formula
derived by Schmoor et al. (2000) for
the following Cox proportional hazards regression in the epidemiological
studies:
Suppose we want to check if
the hazard ratio of the interaction effect
If
Schmoor C., Sauerbrei W., and Schumacher M. (2000). Sample size considerations for the evaluation of prognostic factors in survival analysis. Statistics in Medicine. 19:441-452.
# NOT RUN {
# Example at the end of Section 4 of Schmoor et al. (2000).
powerEpiInt.default0(n = 184,
theta = 3,
p = 0.61,
psi = 139 / 184,
G = 4.79177,
rho2 = 0.015^2,
alpha = 0.05)
# }
Run the code above in your browser using DataLab