powerEpiInt2 {powerSurvEpi} | R Documentation |
Power Calculation Testing Interaction Effect for Cox Proportional Hazards Regression
Description
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.
Usage
powerEpiInt2(n,
theta,
psi,
mya,
myb,
myc,
myd,
alpha = 0.05)
Arguments
n |
integer. total number of subjects. |
theta |
numeric. postulated hazard ratio. |
psi |
numeric. proportion of subjects died of the disease of interest. |
mya |
integer. number of subjects taking values |
myb |
integer. number of subjects taking values |
myc |
integer. number of subjects taking values |
myd |
integer. number of subjects taking values |
alpha |
numeric. type I error rate. |
Details
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:
where both covariates and
are binary variables.
Suppose we want to check if
the hazard ratio of the interaction effect to
is equal to
or is equal to
.
Given the type I error rate
for a two-sided test, the power
required to detect a hazard ratio as small as
is
where is the
-th percentile of the standard normal distribution,
is the proportion of subjects died of
the disease of interest, and
and
,
,
,
and
, and
and
,
,
,
,
.
,
,
,
.
Value
The power of the test.
References
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.
See Also
powerEpiInt.default0
, powerEpiInt.default1
Examples
# Example at the end of Section 4 of Schmoor et al. (2000).
# mya, myb, myc, and myd are obtained from Table III on page 448
# of Schmoor et al. (2000).
powerEpiInt2(n = 184,
theta = 3,
psi = 139 / 184,
mya = 50,
myb = 21,
myc = 78,
myd = 35,
alpha = 0.05)