{'fraction_non_alphanumeric': 0.014814814814814815, 'fraction_numerical': 0.0, 'mean_word_length': 5.286821705426356, '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 calculation for logrank test and prediction of number of events over time

We review and compare existing methods for sample size calculation based on the logrank statistic and recommend the method of Lakatos for its accuracy and flexibility in allowing time‐dependent rates of event, loss to follow‐up, and noncompliance. We extend the Lakatos method to allow a general follow‐up scheme, to handle non‐inferiority tests, and to predict the number of events over calendar time. We apply the Lakatos method to the simple nonproportional hazard situation of delayed treatment effect to facilitate the comparison of different weighting methods and to evaluate the performance of the maximum combination tests. We use simulation studies to confirm the validity of the Lakatos method and its extensions.