{'fraction_non_alphanumeric': 0.018867924528301886, 'fraction_numerical': 0.0041928721174004195, 'mean_word_length': 5.044303797468355, '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}}
Hypothesis testing for two‐stage designs with over or under enrollment

Simon's two‐stage designs are widely used in cancer phase II clinical trials for assessing the efficacy of a new treatment. However in practice, the actual sample size for the second stage is often different from the planned sample size, and the original inference procedure is no longer valid. Previous work on this problem has certain limitations in computation. In this paper, we attempt to maximize the unconditional power while controlling for the type I error for the modified second stage sample size. A normal approximation is used for computing the power, and the numerical results show that the approximation is accurate even under small sample sizes. The corresponding confidence intervals for the response rate are constructed by inverting the hypothesis test, and they have reasonable coverage while preserving the type I error. Copyright © 2015 John Wiley & Sons, Ltd.