BookmarkSubscribeRSS Feed
chinna0369
Pyrite | Level 9

Hello all, 

 

My data looks like below:

id hdl_hi age_hi
2    1   1
3    0   1
4    0   1
5    1   1
6    0   1
7    1   1
8    0   1
9    0   1
11  1   1
12  1   1

 

I am trying below code to find out association between hdl and age. Could you please confirm that is this correct procedure? and where to look for association details?

 

proc logistic data=step1;
class age_hi(param=ref ref="1");
model hdl_hi (event="1")=age_hi;
ods output fitstatistics=log2ratio_full
globaltests=df_full;
run;

 

Below are the stats produced from my code:

 

Capture.PNGCapture 1.PNG

 

Any help would be appreciated.

 

Thanks,

Adithya

1 REPLY 1
PaigeMiller
Diamond | Level 26

Usually, I understand the word association to mean a contingency table, such as would be produced by PROC FREQ.

Example: https://documentation.sas.com/?docsetId=statug&docsetVersion=15.1&docsetTarget=statug_freq_examples0...

 

In your simple case with 2 levels of each variable, this may be the same as your PROC LOGISTIC code, I don't remember the exact math anymore.

--
Paige Miller

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1031 views
  • 0 likes
  • 2 in conversation