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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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