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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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