{'fraction_non_alphanumeric': 0.020134228187919462, 'fraction_numerical': 0.003355704697986577, 'mean_word_length': 5.483695652173913, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Sample size requirements to detect an intervention by time interaction in longitudinal cluster randomized clinical trials

In designing a longitudinal cluster randomized clinical trial (cluster‐RCT), the interventions are randomly assigned to clusters such as clinics. Subjects within the same clinic will receive the identical intervention. Each will be assessed repeatedly over the course of the study. A mixed‐effects linear regression model can be applied in a cluster‐RCT with three‐level data to test the hypothesis that the intervention groups differ in the course of outcome over time. Using a test statistic based on maximum likelihood estimates, we derived closed‐form formulae for statistical power to detect the intervention by time interaction and the sample size requirements for each level. Importantly, the sample size does not depend on correlations among second‐level data units and the statistical power function depends on the number of second‐ and third‐level data units through their product. A simulation study confirmed that theoretical power estimates based on the derived formulae are nearly identical to empirical estimates. Copyright © 2009 John Wiley & Sons, Ltd.