When using the best subset selection method (SELECTION=SCORE option) in PROC LOGISTIC, if the data in the candidate predictors are extremely ill-conditioned then the score chi-square statistics reported in the "Regression Models Selected by Score Criterion" table might be incorrect. The data are ill-conditioned if there are constant variables, if the variables have a very wide variation in scales, or if there are highly-collinear/redundant variables. The problem can be avoided by removing variables causing the ill-conditioning, and then using the SELECTION=SCORE method on the remaining variables. To do this, remove any constant variables, use PROC STANDARD to standardize the variables if there is a wide difference in scales, and remove any variables that are redundant as illustrated below.
This PROC STANDARD step standardizes all numeric candidate variables in data set MYDATA.
proc standard data=mydata out=stddata m=0 s=1; var <all-candidate-variables>; run;
Run PROC LOGISTIC on the standardized data using all of the desired candidate variables. Include an ODS OUTPUT statement to save the table of parameter estimates.
proc logistic data=stddata; model <response-variable> = <all-candidate-variables>; ods output parameterestimates=pe; run;
The following DATA step creates a macro variable (UseTerms) that contains the list of nonconstant and nonredundant candidate predictors.
%let UseTerms=; data _null_; set pe; if df=1 and Variable ne "Intercept" then call symput("UseTerms",catx(" ",symget("UseTerms"),Variable)); run;
Using only the standardized variables in the UseTerms macro variable avoids any ill-conditioning in the PROC LOGISTIC step that implements the SELECTION=SCORE model selection method.
proc logistic data=stddata; model <response-variable> = &UseTerms / selection=score; run;
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | SAS/STAT | Windows 7 Professional x64 | 9.2 TS2M3 | 9.4 TS1M3 |
Windows 7 Professional 32 bit | 9.2 TS2M3 | 9.4 TS1M3 | ||
Windows 7 Home Premium x64 | 9.2 TS2M3 | 9.4 TS1M3 | ||
Windows 7 Home Premium 32 bit | 9.2 TS2M3 | 9.4 TS1M3 | ||
Windows 7 Enterprise x64 | 9.2 TS2M3 | 9.4 TS1M3 | ||
Windows 7 Enterprise 32 bit | 9.2 TS2M3 | 9.4 TS1M3 | ||
Microsoft Windows XP Professional | 9.2 TS2M3 | |||
Microsoft Windows Server 2008 for x64 | 9.2 TS2M3 | 9.4 TS1M3 | ||
Microsoft Windows Server 2008 R2 | 9.2 TS2M3 | 9.4 TS1M3 | ||
Microsoft Windows Server 2008 | 9.2 TS2M3 | 9.4 TS1M3 | ||
Microsoft Windows Server 2003 for x64 | 9.2 TS2M3 | |||
Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M3 | |||
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M3 | |||
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M3 | |||
z/OS | 9.2 TS2M3 | 9.4 TS1M3 | ||
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M3 | |||
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M3 | |||
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M3 | |||
Microsoft Windows XP 64-bit Edition | 9.2 TS2M3 | |||
Microsoft® Windows® for x64 | 9.2 TS2M3 | 9.4 TS1M3 | ||
Windows 7 Ultimate 32 bit | 9.2 TS2M3 | 9.4 TS1M3 | ||
Windows 7 Ultimate x64 | 9.2 TS2M3 | 9.4 TS1M3 | ||
Windows Vista | 9.2 TS2M3 | |||
Windows Vista for x64 | 9.2 TS2M3 | |||
64-bit Enabled AIX | 9.2 TS2M3 | 9.4 TS1M3 | ||
64-bit Enabled HP-UX | 9.2 TS2M3 | 9.4 TS1M3 | ||
64-bit Enabled Solaris | 9.2 TS2M3 | 9.4 TS1M3 | ||
HP-UX IPF | 9.2 TS2M3 | 9.4 TS1M3 | ||
Linux | 9.2 TS2M3 | 9.4 TS1M3 | ||
Linux for x64 | 9.2 TS2M3 | 9.4 TS1M3 | ||
OpenVMS on HP Integrity | 9.2 TS2M3 | 9.4 TS1M3 | ||
Solaris for x64 | 9.2 TS2M3 | 9.4 TS1M3 | ||
Microsoft Windows 2000 Advanced Server | 9.1 TS1M0 | |||
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M0 | |||
Microsoft Windows 2000 Server | 9.1 TS1M0 | |||
Microsoft Windows 2000 Professional | 9.1 TS1M0 | |||
Microsoft Windows NT Workstation | 9.1 TS1M0 | |||
OpenVMS Alpha | 9.1 TS1M0 | 9.4 TS1M3 | ||
Tru64 UNIX | 9.1 TS1M0 | 9.4 TS1M3 | ||
Z64 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8 Pro x64 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Pro | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 Std | 9.4 TS1M2 | 9.4 TS1M3 |
Type: | Problem Note |
Priority: | alert |
Topic: | Analytics ==> Categorical Data Analysis Analytics ==> Regression SAS Reference ==> Procedures ==> LOGISTIC |
Date Modified: | 2014-10-23 14:04:13 |
Date Created: | 2014-10-16 10:18:03 |