Programming the statistical procedures from SAS

How to produce Bar Charts with T-Bar?

Reply
N/A
Posts: 0

How to produce Bar Charts with T-Bar?

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
Super Contributor
Posts: 359

Re: How to produce Bar Charts with T-Bar?

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.
SAS Super FREQ
Posts: 876

Re: How to produce Bar Charts with T-Bar?

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;
Ask a Question
Discussion stats
  • 2 replies
  • 75 views
  • 0 likes
  • 3 in conversation