SAS
PROGRAMS FOR ABSOLUTE BEGINNERS BY AJEET KUMAR
* Proc Chart Program
Number: 1;
proc chart data =
class ;
pie gender ;
run;
* Proc Chart Program
Number: 2;
proc chart data =
class ;
vbar gender ;
run;
* Proc Chart Program
Number: 3;
proc chart data =
class ;
vbar gender state
;
run;
* Proc Chart Program
Number: 4;
proc chart data =
class ;
vbar age ;
run;
* Proc Chart Program
Number: 5;
proc chart data =
class ;
vbar age /
discrete;
run;
* Proc Chart Program
Number: 6;
proc chart data =
class ;
vbar age / levels
= 4 ;
run;
* Proc Chart Program
Number: 7;
proc chart data =
class ;
vbar age /
midpoints = 10 to 40 by 5 ;
run;
* Proc Chart Program
Number: 8;
proc chart data =
class ;
vbar age /
midpoints = 10 12 14 16 18 30 to 40 by 5 ;
run;
* Proc Chart Program
Number: 9;
proc chart data =
class ;
vbar state /
sumvar = age type = sum ;
run;
* Proc Chart Program
Number: 10;
proc chart data =
class ;
vbar state /
sumvar = age type = mean ;
run;
* Proc Chart Program
Number: 11;
proc chart data =
class ;
vbar state /
group = gender sumvar = age type = sum ;
run;
* Proc Chart Program
Number: 12;
proc chart data =
class ;
vbar state /
subgroup = gender sumvar = age type = sum ;
run;
* Proc Chart Program
Number: 13;
proc chart data =
class ;
hbar gender ;
run;
No comments:
Post a Comment