2) 多批数据箱线图
对于多批数据,我们可以将各批数据的箱线图并列起来,从而进行分布特征的比较。
例12 同例10数据,用多批数据箱线图初步比较标准株、水生株的的分布。
SAS程序:
[quote:16749]data beishu;
input type$ beishu@@;
cards;
A 100 A 200 A 400 A 400 A 400 A 400
A 800 A 1600 A 1600 A 1600 A 3200
B 100 B 100 B 100 B 200 B 200 B 200
B 200 B 400 B 400
;
proc format;
value $tt A='标准株' B='水生株';
proc boxplot; plot beishu*type; format type $tt.;
run;[/quote:16749]