SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 66509: Several procedures in SAS/STAT® Software and SAS/QC® Software generate incorrect results when an OBSMARGINS= data set is used

DetailsHotfixAboutRate It

When the OBSMARGINS= or OM= option is specified in an LSMEANS, LSMESTIMATE, or SLICE statement, and the response variable is in the CLASS statement variable list in front of the class variables that also appear in the MODEL statement, the following modeling procedures generate incorrect results:

SAS/QC Software

  • RELIABILITY

SAS/STAT Software

  • GEE
  • GENMOD
  • LOGISTIC
  • MIXED
  • ORTHOREG
  • PHREG
  • PROBIT
  • SURVEYLOGISTIC
  • SURVEYREG

When the SAS/STAT postfitting procedure, PROC PLM, uses an item store that is generated by any of the above procedures or by the GLIMMIX procedure under the same conditions, and an OM-data-set is used, the least squares means results are also incorrect.

The LSMEANS, LSMESTIMATE, and SLICE statements with the OM= option generate incorrect results. The rest of the results are correct.

To circumvent the problem, specify the response variable after all of the CLASS statement variables that also appear in the MODEL statement. 

For example, the following syntax produces incorrect least squares means results:

class y A B C;
model y = A|B;
lsmeans A*B/ obsmargins=om;

Any permutation of the class variables that places the response variable after the model variables avoids the problem. Here is an example:

class A B y C;

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/STAT64-bit Enabled AIX9.29.2 TS1M0
64-bit Enabled HP-UX9.29.2 TS1M0
64-bit Enabled Solaris9.29.2 TS1M0
Linux for x649.22020.1.19.2 TS1M0Viya
Linux9.29.2 TS1M0
OpenVMS on HP Integrity9.29.2 TS1M0
Microsoft® Windows® for x649.29.2 TS1M0
Windows Vista9.29.2 TS1M0
Microsoft Windows XP Professional9.29.2 TS1M0
Microsoft Windows Server 2003 Standard Edition9.29.2 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.29.2 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.29.2 TS1M0
Microsoft Windows XP 64-bit Edition9.29.2 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.29.2 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.29.2 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.29.2 TS1M0
HP-UX IPF9.29.2 TS1M0
z/OS9.29.2 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.