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;
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.
Explore 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.