Description Usage Arguments Value References Examples

This function is for effect size and ICC calculation for Cluster randomized trials (CRT) with 3 arms based on empirical data. CRT are a type of multilevel design for the situation when the entire cluster is randomly assigned to either a treatment arm or a contral arm (Liu, 2013). The data from CRT can be analyzed in a two-level hierachical linear model, where the indicator variable for treatment assignment is included in second level. If a study contains multiple treatments, then mutiple indicators will be used. This function is for designs with 3 arms (i.e., two treatments and a control). Details leading to power calculation can be found in Raudenbush (1997) and Liu (2013). The Effect size f specifies the main effect of treatment, the mean difference between the treatment clusters and the control clusters. This function is used to calculate the effect size with a input data set.

1 |

`file` |
The input data set. The first column of the data is the ID variable, the second column represents cluster, the third column is the outcome variable, and the fourth column is the condition variable (0 for control, 1 for treatment1, 2 for treatment2). |

A list including effect size f1, f2, f3, and ICC.

Liu, X. S. (2013). Statistical power analysis for the social and behavioral sciences: basic and advanced techniques. Routledge.

Raudenbush, S. W. (1997). Statistical analysis and optimal design for cluster randomized trials. Psychological Methods, 2(2), 173.

1 2 3 4 5 6 7 8 9 10 11 | ```
#To calculate the effect sizes based on empirical data
wp.effect.CRT3arm (CRT3)
# Effect size for CRT3arm
#
# f1 f2 f3 ICC
# 0.6389258 -0.6189113 0.3931397 -0.019794
#
# NOTE: f1 for treatment main effect;
# f2 for difference between two treatments;
# f3 for effect size of omnibus test.
# URL: http://psychstat.org/crt3arm
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.