第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

SAS Box Plot

SAS Day 33: Box Plot

Definition:

Box Plot or Whisker plot displays the distribution of 5-number summary of a dataset: minimum, maximum, q1, q3, and Median.

Interpreting quartiles:

The 5-number summary approximately divides the data into 4 sections that each containing 25% of the data.

Explore a little more

If we want to look at the Outliers, we define the points below q1- 1.5(q3-q1) and q3+ 1.5(q3-q1) as outliers.

Note: if we transfer the Q1-Q3 range of a boxplot into a normal distribution, then it maps to the peak of a normal curve (± 0.6745σ).

[caption id=“attachment_2204” align=“alignnone” width=“750”]image

akshayapatra / Pixabay[/caption]

Example:

we will use sashelp.class as an example for box-plot using SGPLOT and TEMPLATE, they both produce the same result!

**Basic Box-Plot **

image

Interpretation:
the median weight of female student is a little lower than 90, 25% of female students’ weight are within 75- 82, 25% are within 105-115 and 50% are between 85-102.

Code:

SPGLOT

proc sgplot data=sashelp.class;
title “Distribution of Weight by Sex”;
vbox weight / category= sex;
run;

TEMPLATE

proc template;
define statgraph ClassBox;
begingraph;
entrytitle “Distribution of Weight by Sex”;
layout overlay;
boxplot y=weight x=sex ;
endlayout;
endgraph;
end;
run;

proc sort data=sashelp.class out=class;
by sex;
run;
proc sgrender data=class template=ClassBox;
run;

Advance Box Plot:

image

Code:

proc univariate data=sashelp.class;

var weight ;
class sex;
ods output quantiles =q;
run;

data q2(rename=(estimate=weight) where=(Quantile ne " “));
set q;
quantile= scan(quantile, 2,”");
run;

proc template;
define statgraph bpp;
begingraph;
entrytitle “Distribution of Weight by Sex” ;
layout overlay;
boxplotparm y=weight x=sex stat=quantile;
endlayout;
endgraph;
end;
run;

proc sgrender data=q2 template=bpp;
run;

with the extra univariate step, we have a summary dataset to look for cross-validate the graph.
we can see indeed the min of female students weight is 50.

image

Reference:

Creating Statistical Graphics in SAS,
*Warren F.Kuhfeld  *

**Happy Practicing!

點擊查看更多內(nèi)容
TA 點贊

若覺得本文不錯,就分享一下吧!

評論

作者其他優(yōu)質(zhì)文章

正在加載中
  • 推薦
  • 評論
  • 收藏
  • 共同學習,寫下你的評論
感謝您的支持,我會繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦
今天注冊有機會得

100積分直接送

付費專欄免費學

大額優(yōu)惠券免費領

立即參與 放棄機會
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號

舉報

0/150
提交
取消