![]() Chapter Contents |
![]() Previous |
![]() Next |
| The FREQ Procedure |
| Procedure features: |
| ||||||||||
| Other features: |
|
This example
| Program |
options nodate pageno=1 linesize=84 pagesize=64;
| | proc format;
value expfmt 1='High Cholesterol Diet'
0='Low Cholesterol Diet';
value rspfmt 1='Yes'
0='No';
run; |
| | data fatcomp; input Exposure Response Count; label response='Heart Disease'; datalines; 0 0 6 0 1 2 1 0 4 1 1 11 ; |
| | proc sort data=fatcomp; by descending exposure descending response; run; |
| | proc freq data=fatcomp order=data; weight count; |
| | tables exposure*response / chisq relrisk; |
| | exact pchi or; |
| | format exposure expfmt. response rspfmt.; title 'Case-Control Study of High Fat/Cholesterol Diet'; run; |
| Output |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.