{'fraction_non_alphanumeric': 0.02952029520295203, 'fraction_numerical': 0.0, 'mean_word_length': 5.033333333333333, '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}}
Attrition Diagrams for Clinical Trials and Meta-analyses in Stata

In this article, we present attrition, a suite of commands to simplify the maintenance and documentation of implemented exclusion criteria and attrition conditions using standard Stata facilities and to generate an attrition diagram. attrition can be used, both from the command line and in do-files, to keep the diagram up to date with the analysis it documents. Six subcommands (set, exclude, count, tab, list, graph) allow the diagram to be constructed in a versatile way.