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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 1312 views
  • 0 likes
  • 2 in conversation