Programming the statistical procedures from SAS

Proc Freq Output

Reply
Frequent Contributor
Posts: 126

Proc Freq Output

Please forgive the newbie, but I ran the code below and was expecting to see a table with Odds Ratios with the title
Estimates of the Common Relative Risk (Row1/Row2). The variables Var7 and Var8 are nominal variables

ods rtf style=journal; /*turn on rtf output*/
ods listing close; /*turn off list (regular) output window, optional*/
ods graphics on; /*turn on ods graphics*/

proc freq data=Var78Stratified;
table var7*cust_type var8*var7*cust_type / cmh;
title 'Contingency Table Analysis Assessing CBSA Type and Rural/Urban County Size';
run;
quit;
ods graphics off;
ods rtf close;
ods listing;
Trusted Advisor
Posts: 2,114

Re: Proc Freq Output

var7 and cust_type need to be binary to get those statistics.
Frequent Contributor
Posts: 126

Re: Proc Freq Output

Thanks for the reply!
Ask a Question
Discussion stats
  • 2 replies
  • 128 views
  • 0 likes
  • 2 in conversation