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-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!

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