BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I want to produce Bar Charts,My data are follows:
v1 v2 v3
1 1 1.10
1 1 2.30
1 2 4.50
1 2 1.80
2 3 0.80
2 3 7.80
2 3 1.10
2 4 3.60
2 4 2.70
2 5 1.60
2 5 2.30
2 5 0.90
3 6 9.50
3 6 0.60
3 7 6.40
3 7 7.80
3 7 2.80
3 8 5.70
3 8 3.60

I want to make v1 with category axis,v2 with cluster,and v3 with statics,and standard deviation value is 1,and I want to show error bars(a T sign) on each bar graphics. How to do it with sas9.2?

Thanks
2 REPLIES 2
Flip
Fluorite | Level 6
I do not know if there is an easy way developed recently, I have not done much graphics for a few years. I used to do this with the annotate facility. You just draw them in based on the data values.

Good luck.
DanH_sas
SAS Super FREQ
Assuming you have 9.2 phase 2, try these examples and see if either give you what you want.


data test;
input v1 v2 v3;
cards;
1 1 1.10
1 1 2.30
1 2 4.50
1 2 1.80
2 3 0.80
2 3 7.80
2 3 1.10
2 4 3.60
2 4 2.70
2 5 1.60
2 5 2.30
2 5 0.90
3 6 9.50
3 6 0.60
3 7 6.40
3 7 7.80
3 7 2.80
3 8 5.70
3 8 3.60
run;

proc sgpanel data=test;
panelby v2 / onepanel noborder layout=columnlattice novarname;
vbar v1 / response=v3 stat=mean limitstat=stddev limits=upper;
run;

proc sgpanel data=test;
panelby v2 / onepanel noborder uniscale=row layout=columnlattice novarname;
vbar v1 / response=v3 stat=mean limitstat=stddev limits=upper;
run;

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1203 views
  • 0 likes
  • 3 in conversation