Learn R Programming

clusterPower (version 0.6.111)

mixed.eff.params: Calculation of variance in Poisson mixed model setting.

Description

This function is designed to calculate the overall variance for cluster-level outcomes in a mixedeffect Poisson model. Conditional expectation calculations are implemented.

Usage

mixed.eff.params(pi0, btw.clust.var, Tk)

Arguments

pi0

the baseline cluster-level mean on the scale of the link function

btw.clust.var

the between-cluster-variance

Tk

the at-risk time for each cluster

Value

A numeric vector with the following three named elements, in order: ["expectation"] the overall mean of cluster-level outcomes, ["variance"] the overall variance of cluster-level outcomes, ["hayes.k"] the estimated coefficient of variation.

Details

The mixed.eff.params() function is used by the hayes.power.poisson() function to compute the effective coefficient of variation, or k, for a particular study design.

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

Hayes RJ and Bennett S. Int J Epi. Simple sample size calculation for cluster-randomized trials. 1999. http://www.ncbi.nlm.nih.gov/pubmed/10342698

See Also

hayes.power.poisson

Examples

Run this code
# NOT RUN {
mixed.eff.params(pi0=log(1), btw.clust.var=.5, Tk=100)

# }

Run the code above in your browser using DataLab