BookmarkSubscribeRSS Feed
BTAinRVA
Quartz | Level 8
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;
2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12
var7 and cust_type need to be binary to get those statistics.
BTAinRVA
Quartz | Level 8
Thanks for the reply!

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1482 views
  • 0 likes
  • 2 in conversation