
Sample size calculation for Cox proportional hazards regression with two covariates for Epidemiological Studies. The covariate of interest should be a binary variable. The other covariate can be either binary or non-binary. The formula takes into account competing risks and the correlation between the two covariates.
ssizeEpi.default(power,
theta,
p,
psi,
rho2,
alpha = 0.05)
numeric. postulated power.
numeric. postulated hazard ratio.
numeric. proportion of subjects taking value one for the covariate of interest.
numeric. proportion of subjects died of the disease of interest.
numeric. square of the correlation between the covariate of interest and the other covariate.
numeric. type I error rate.
The required sample size to achieve the specified power with the given type I error rate.
This is an implementation of the sample size formula
derived by Latouche et al. (2004)
for the following Cox proportional hazards regression in the epidemiological
studies:
Suppose we want to check if the hazard of
Schoenfeld DA. (1983). Sample-size formula for the proportional-hazards regression model. Biometrics. 39:499-503.
Latouche A., Porcher R. and Chevret S. (2004). Sample size formula for proportional hazards modelling of competing risks. Statistics in Medicine. 23:3263-3274.
# NOT RUN {
# Examples at the end of Section 5.2 of Latouche et al. (2004)
# for a cohort study.
ssizeEpi.default(power = 0.80,
theta = 2,
p = 0.39,
psi = 0.505,
rho2 = 0.132^2,
alpha = 0.05)
# }
Run the code above in your browser using DataLab