View source: R/GEE_Functions.R
geen | R Documentation |
Compute the sample size (N, number of clusters) required to test a main effect of a treatment in a 2-arm parallel groups design via a 3-level generalized estimating equation with binary outcome data.
geen(p0, p1, r, rho, n_e = 1, n_s = 1, pi_c = 0.5, alpha = 0.05, gamma = 0.2)
p0 |
A numeric value for |
p1 |
A numeric value for |
r |
A numeric value for |
rho |
A numeric value for |
n_e |
A numeric value for |
n_s |
A numeric value for |
pi_c |
A numeric value for |
alpha |
A numeric value for |
gamma |
A numeric value for |
=============================================================================
This function uses a z-score approximation instead of a t-statistic to avoid iteratively solving the sample size formula. The resulting N is then then translated into power using the t-statistic and degrees of freedom implied by the resulting sample size.
A data frame.
Teerenstra, S., Lu, B., Preisser, J. S., van Achterberg, T., & Borm, G. F. (2010). Sample size considerations for GEE analyses of three-level cluster randomized trials. Biometrics, 66(4), 1230-1237. doi:10.1111/j.1541-0420.2009.01374.x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.