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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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