Hello, I've been struggling with data that is overlapping (many defendants correlating to one claim). I'm trying to get a pvalue using the Kruskal Wallis test comparing medians of 3 continuous variables (paymentsum1, paymentsum2, paymentsum3). Below is the structure of the data. I can't combine paymentsum1-3 into long format because the 1, 2, 3 correlate to different groups and that grouping cannot be lost. I'm hoping this is obvious! case_id paymentsum1 paymentsum2 paymentsum3 1 $500 $1000 $20 2 $100 . . 3 $200 $500 4 $1000 Thanks Laura
... View more