* Reformat Example -- reformat.sas source code; * Original dataset; data orig; infile 'c:/datasets/reading-paired.txt' firstobs=2; input std_score new_score; label std_score='Score Using Standard Method' new_score='Score Using New Method'; proc print data=orig; title 'Print Original Dataset'; * Reformat dataset in form that allows side-by-side boxplots; data reformat; keep method score; set orig; method = 'std'; score = std_score; output; method = 'new'; score = new_score; output; proc print data=reformat; title 'Print Dataset Reformat'; proc sort data=reformat; by method; proc print; title 'Print Sorted Dataset Reformat'; * Create side-by-side boxplots; proc boxplot data=reformat; plot score * method / boxstyle=schematic boxwidth=25; run;