SAS statistical analysis programming

Adarsha Regmi
Nov 19, 2021

bar chart and its properties.

BAR CHART

proc sgplot data=Bookdata.IUPASBasic

vbar metro / response=Payment stat=median GROUPDISPLAY=stack;

run;

/ stat=percent shows the percent.

/ response = comparative numerical variable

Grouped HBAR VBAR

Group = option allows for each level the charting variable to be broken down across levels of specified variable.

hbar MortgagePayment / group=metro

Group = variable <treated as a categorical >

ss

the placement by default occurs to be stack. But we can check it using GroupDisplay = option` options are stack, cluster (side by side).

--

--