{'fraction_non_alphanumeric': 0.017333333333333333, 'fraction_numerical': 0.0, 'mean_word_length': 5.056451612903226, '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}}
Conditional Optimal Design in Three- and Four-Level Experiments

The precision of estimates of treatment effects in multilevel experiments depends on the sample sizes chosen at each level. It is often desirable to choose sample sizes at each level to obtain the smallest variance for a fixed total cost, that is, to obtain optimal sample allocation. This article extends previous results on optimal allocation to four-level cluster randomized designs and randomized block designs. It also introduces the idea of constrained optimal allocation, where the sample size at one or more levels is fixed by considerations other than cost or sampling variation. Explicit formulas are given for constrained optimal allocation in three- and four-level designs.