{'fraction_non_alphanumeric': 0.012769353551476457, 'fraction_numerical': 0.0, 'mean_word_length': 5.117073170731707, '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 and Estimation in Ordinal Data Under a Simple Crossover Design

Since each patient serves as his/her own control, the crossover design can be of use to improve power as compared with the parallel-groups design in studying noncurative treatments to certain chronic diseases. Although the research studies on the crossover design have been quite intensive, the discussions on analyzing ordinal data under such a design are truly limited. We propose using the generalized odds ratio (GOR) for paired sample data to measure the relative effect on patient responses for both treatment and period in ordinal data under a simple crossover trial. Assuming the treatment and period effects are multiplicative, we note that one can easily derive the maximum likelihood estimator (LE) in closed forms for the GOR of treatment and period effects. We develop asymptotic and exact procedures for testing treatment and period effects. We further derive asymptotic and exact interval estimators for the GOR of treatment and period effects. We use the data taken from a crossover trial to assess the clarity of leaflet instructions between two devices among asthma patients to illustrate the use of these test procedures and estimators developed here.