Hi,
Could someone tell me which method is correct to check multicollinearity a logistic regression model? Thanks.
1) method 1
proc logistic data= sample;
model y(event='1') =x1 x2 x3;
run;
proc reg data=sample;
model y= x1 x2 x3/vif;
run;
2) method 2
proc logistic data= sample;
model y(event='1') =x1 x2 x3;
output out=out_data p=pred;
run;
proc reg data=out_data;
model pred= x1 x2 x3/vif;
run;
I would vote for method 1
Koen
None of them.
You should check CORRB option of PROC LOGISTIC to check the correlation between the estimated coefficient .
32471 - Testing assumptions in logit, probit, Poisson and other generalized linear models (sas.com)
Also calling @StatDave @SteveDenham
proc logistic data=sashelp.heart;
class sex bp_status;
model status=sex bp_status height weight ageatstart/corrb ;
run;
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.