Absolute minimum for discussion would be both sets of code submitted. Better would be to include the output you are discussing so we can see values and summaries to see if they provide any helpful hints.
Why? Different model, different fit. The math does that.
What it means? Depends a lot on the actual content of the data.
Suppose I have a model (different sort of regression) that has a dependent variable of Maximum Air Temperature and use Month of the year as the predictor. I might get some indications of a "good" fit because winter has lower temps than summer on some given range of dates. Then I add another predictor, such as the previous day's temperature to the model. It is very likely that the "Month" is less useful as a predictor because of the nature of how air temperature works.
Statistically significant does always imply practicality of use or reliability.
Sorry. I am not familiar with Kramer matrix .
But CORR option could take into account of the correlation between all the independent variable, so I suggest to use it . According to the code you posted ,you get this:
Height and Intercept term are multicollinrarity.
There are too many method to performance the selection of variables.
The following are the two ways I am favorited .
1)LASSO method:
proc hpgenselect data=sashelp.heart;
class sex bp_status;
model status=sex bp_status height weight ageatstart/dist=binary ;
selection method=Lasso(choose=SBC) details=all;
performance details;
run;
2) PROC PLS (which could take care of MISSGING value ,while PROC HPGENSELECT would delete it)
P.S. This is specially suited for Credit Risk/Score Card data,since the big wide table have lots of missing values.
data heart;
set sashelp.heart;
y=ifn(status='Dead',1,0);
run;
ods output VariableImportancePlot= VariableImportancePlot;
proc pls data=heart missing=em nfac=2 plot=(ParmProfiles VIP) details;
class sex bp_status;
model y=sex bp_status height weight ageatstart;
run;
proc sort data=VariableImportancePlot;
by descending VIP;
run;
proc print;run;
the VIP is bigger,the variable is more important.
For what very little it may be worth, in my previous job we has some models that our process before reporting results to the clients checked the result with the same model variables in different order on the equivalent of the Model statement. Exact same variables, different "significance" results. Which basically was telling us the choice of variables wasn't robust if variables when from significant to not significant...
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!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.