crt.means.r | R Documentation |
For a cluster randomized trial with a continuous outcome, this function calculates the correlation between a cluster's mean at baseline and at follow up based on various inputs. For cross-sectional sampling of subjects, that is, different subjects are measured at baseline and follow up, specify sac = 0.
crt.means.r(m, icc, cac, sac)
m |
The number of measurements in each cluster at baseline and follow up. |
icc |
The intraclass correlation coefficient. |
cac |
The cluster autocorrelation. |
sac |
The subject autocorrelation. |
The computed correlation.
crt.means.r(m = 30, icc = 0.05, cac = 0.4, sac = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.