the expected at-risk time per individual in the study
cluster.size
the number of individuals in each cluster
effect.size
effect size, specified on the GLM link scale
alpha
desired type I error rate
Value
A numeric vector of length 1, containing the estimated power for the given study specifications.
Details
Calculates, for a specified study design, the power of that study to detect the
specified effect size. The model is specified as a Poisson log-linear random
effects model (period.effect and btw.clust.var are parameters from
the model specified in Reich et al (2012)). Based on this model specification, the
coefficient of varation between cluster-level outcomes is calculated using
conditional expectation (see mixed.eff.params()) and then the formula from Hayes
and Bennett (1999) is implemented.
References
Reich NG et al. PLoS ONE. Empirical Power and Sample Size Calculations for
Cluster-Randomized and Cluster-Randomized Crossover Studies. 2012. http://ow.ly/fEn39