BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
dchick
Fluorite | Level 6

I am currently trying to get the odds ratio from utilizing:

proc freq data=moldova2 order=formatted;
tables hiv*mdr / measures;
title 'Comparison of PROC FREQ to LOGISTIC results';
run;

In my table I only get after running

Comparison of PROC FREQ to LOGISTIC results

The FREQ Procedure

Frequency
Percent
Row Pct
Col Pct
Table of HIV by MDR
HIV	MDR
Other	Resistant	Total
HIV Negative	
6681
65.71
78.06
83.75
1878
18.47
21.94
85.71
8559
84.18
 
 
HIV Positive	
378
3.72
69.74
4.74
164
1.61
30.26
7.49
542
5.33
 
 
Unknown	
918
9.03
86.04
11.51
149
1.47
13.96
6.80
1067
10.49
 
 
Total	
7977
78.45
2191
21.55
10168
100.00
Frequency Missing = 1519
Statistics for Table of HIV by MDR

Statistic	Value	ASE
Gamma	-0.0923	0.0322
Kendall's Tau-b	-0.0276	0.0093
Stuart's Tau-c	-0.0169	0.0057
Somers' D C|R	-0.0305	0.0102
Somers' D R|C	-0.0250	0.0084
Pearson Correlation	-0.0431	0.0089
Spearman Correlation	-0.0281	0.0094
Lambda Asymmetric C|R	0.0000	0.0000
Lambda Asymmetric R|C	0.0000	0.0000
Lambda Symmetric	0.0000	0.0000
Uncertainty Coefficient C|R	0.0060	0.0015
Uncertainty Coefficient R|C	0.0058	0.0014
Uncertainty Coefficient Symmetric	0.0059	0.0014
Sample Size = 10168
Frequency Missing = 1519

WARNING: 13% of the data are missing.

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

You need to specify the ODDSRATIO option — but this only works for 2x2 tables.

--
Paige Miller

View solution in original post

1 REPLY 1
PaigeMiller
Diamond | Level 26

You need to specify the ODDSRATIO option — but this only works for 2x2 tables.

--
Paige Miller

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 242 views
  • 1 like
  • 2 in conversation