Help using Base SAS procedures

sas graph / Proc Gchart

Reply
Frequent Contributor
Posts: 99

sas graph / Proc Gchart

Hi everyone,
Thanks for your help in advance.
I want a vbar using proc gchart (if possible) for the following data: Type is main group, school is sub group and section are sub-sub group. I want the data for section stacked.

type school section count
A sh1 A 10
A sh1 B 15
A sh2 A 23
A sh2 B 17
B sh1 A 9
B sh1 B 22
B sh2 A 16
B sh2 B 7

Thanks,

Amit
SAS Super FREQ
Posts: 8,866

Re: sas graph / Proc Gchart

Hi:
You'll have to look at the SAS/Graph doc, because I'm typing this from memory, but it's something like:
[pre]
proc gchart data=work.???;
vbar3d var1 / sumvar=var2 type=sum
subgroup=var3
group=var4;
run;
quit;
[/pre]

You can use other statistics for TYPE=, like TYPE=MEAN .. but that's in the doc.
cynthia
Frequent Contributor
Posts: 99

Re: sas graph / Proc Gchart

Posted in reply to Cynthia_sas
Thanks a lot.

Amit
Ask a Question
Discussion stats
  • 2 replies
  • 141 views
  • 0 likes
  • 2 in conversation