Menu
Inputs
Calculate Sample Size Needed to Test Relative Incidence in Self Controlled Case Series Studies: SCCS, Alt-2
The Self-Controlled Case Series (SCCS) method was originally developed by Farrington (1995) to compare relative incidence of adverse events following vaccination. In brief, the method compares incidence in a 'risk' time period shortly following exposure (vaccination) to the remainder of the observation period, the control period. Since it's initial development the SCCS method has been expanded in several ways, and has been used in a wide variety of pharmacoepidemiology studies. A salient feature of the method is that factors that do not vary with time (e.g. sex, race) are inherently accounted for.
Suppose each individual spends proportion of the observation period in the exposed time period, and let represent the relative incidence; i.e. incidence is increased by a factor of in the exposed period compared to the control period. The hypotheses to be tested are
This calculator implements the second method (i.e. alternative 2) for computing sample size for SCCS studies presented by Musonda et al. (2006). These computation formulas are based on the sampling distribution of .
Under the null hypothesis is approximately distributed
where is the number of individuals exposed during the observation period. Under the alternative hypothesis is approximately distributed
This leads to the below formulas for power and sample size.
Formulas
This calculator uses the following formulas to compute sample size and power, respectively:
where
is sample size
is the standard Normal distribution function
is the standard Normal quantile function
is Type I error
is Type II error, meaning is power
R Code
1p=3
2r=42/365
3alpha=0.05
4beta=0.20
5(n=(qnorm(1-alpha/2)+qnorm(1-beta)*(p*r+1-r)/sqrt(p))^2/(r*(1-r)*log(p)^2))
6ceiling(n)# 54
7(Power=pnorm((log(p)*sqrt(n*p*r*(1-r))-qnorm(1-alpha/2)*sqrt(p))/(p*r+1-r)))References
Musonda, P, CP Farrington, HJ Whitaker. 2006. Sample sizes for self-controlled case series studies. Statistics in Medicine 25:2618-2631. page 2621.
Farrington CP. 1995. Relative incidence estimation from case series for vaccine safety evaluation. Biometrics 51:228-235. page 228.