Problem Note 14737: PROC MEANS/SUMMARY incorrectly assigning missing value to weighted
statistic
PROC MEANS/SUMMARY may incorrectly assign a missing value to a weighted
statistic. The problem occurs when there are multiple VAR statements,
each with a different WEIGHT variable specified and one or more of the
WEIGHT variable values is missing on a previous VAR statement.
In the example below, Z will have a missing weighted mean for some
observations even though W1 has no missing values. W2 does
have missing values, and they are incorrectly affecting the statistics
for Z.
data test;
input x y z w1 w2;
cards;
2 3 4 1 1
2 3 4 1 .
;
run;
proc means data=test;
var x / weight=w1;
var y / weight=w2;
var z / weight=w1;
run;
A Technical Support hot fix for Release 8.2 (TS2M0) for this
issue is available at:
http://www.sas.com/techsup/download/hotfix/82_sbcs_prod_list.html#014737
For customers running SAS with Asian Language Support (DBCS), this
hot fix should be downloaded from:
http://www.sas.com/techsup/download/hotfix/82_dbcs_prod_list.html#014737
A fix for SAS 9.1.3 (9.1 TS1M3) for this issue is available at:
http://www.sas.com/techsup/download/hotfix/e9_sbcs_prod_list.html#014737
For customers running SAS with Asian Language Support (DBCS), this
fix should be downloaded from:
http://www.sas.com/techsup/download/hotfix/e9_dbcs_prod_list.html#014737
Operating System and Release Information
| SAS System | Base SAS | ABI+ for Intel Architecture | 8.2 TS2M0 | 9.2 TS1M0 |
| Linux | 8.2 TS2M0 | 9.2 TS1M0 |
| z/OS | 8.2 TS2M0 | 9.2 TS1M0 |
| OS/2 | 8.2 TS2M0 | |
| IRIX | 8.2 TS2M0 | 9.2 TS1M0 |
| 64-bit Enabled Solaris | 8.2 TS2M0 | 9.2 TS1M0 |
| Solaris | 8.2 TS2M0 | 9.2 TS1M0 |
| OpenVMS VAX | 8.2 TS2M0 | 9.2 TS1M0 |
| Microsoft Windows 2000 Advanced Server | 8.2 TS2M0 | |
| Microsoft Windows 2000 Datacenter Server | 8.2 TS2M0 | |
| Microsoft Windows 2000 Professional | 8.2 TS2M0 | |
| Microsoft Windows 2000 Server | 8.2 TS2M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 8.2 TS2M0 | 9.2 TS1M0 |
| Microsoft Windows Server 2003 Enterprise Edition | 8.2 TS2M0 | 9.2 TS1M0 |
| Microsoft Windows Server 2003 Standard Edition | 8.2 TS2M0 | 9.2 TS1M0 |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9 TS M0 | 9.2 TS1M0 |
| Microsoft Windows NT Workstation | 8.2 TS2M0 | |
| Microsoft Windows XP Professional | 8.2 TS2M0 | 9.2 TS1M0 |
| Windows Millennium Edition (Me) | 8.2 TS2M0 | |
| HP-UX | 8.2 TS2M0 | 9.2 TS1M0 |
| CMS | 8.2 TS2M0 | 9.2 TS1M0 |
| HP-UX IPF | 9 TS M0 | 9.2 TS1M0 |
| 64-bit Enabled HP-UX | 8.2 TS2M0 | 9.2 TS1M0 |
| OpenVMS Alpha | 8.2 TS2M0 | 9.2 TS1M0 |
| 64-bit Enabled AIX | 8.2 TS2M0 | 9.2 TS1M0 |
| Microsoft Windows 95/98 | 8.2 TS2M0 | |
| Tru64 UNIX | 8.2 TS2M0 | 9.2 TS1M0 |
| AIX | 8.2 TS2M0 | 9.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.
PROC MEANS/SUMMARY incorrectly assigning missing value to weighted
statistic.
| Type: | Problem Note |
| Priority: | alert |
| Topic: | SAS Reference ==> Procedures ==> SUMMARY
|
| Date Modified: | 2008-12-10 15:12:07 |
| Date Created: | 2005-03-09 11:48:40 |