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!
You need to specify the ODDSRATIO option — but this only works for 2x2 tables.
You need to specify the ODDSRATIO option — but this only works for 2x2 tables.
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!
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.