SAS Institute Alert Note SN-003815

From: SAS Technical Support (LISTSERV@VM.SAS.COM)
Date: Mon Nov 27 2000 - 08:19:00 EST

  • Next message: SAS Technical Support: "SAS Institute Alert Note SN-003805"

    SN-003815 ***Alert Note***

    PROC MEANS/SUMMARY may generate incorrect weighted statistics with
    multiple VAR statements

    Product: Base SAS
    Component: SUMMARY/MEANS/TABULATE/REPORT issues
    Priority: ALERT

      PROC MEANS/SUMMARY may generate incorrect weighted statistics when no
      CLASS statement is specified and there are multiple VAR statements with
      and without the WEIGHT= option. The order of the variables on the VAR
      statement is significant. In order to encounter this problem, the
      variables appearing on the VAR statements have to be interleaved based
      on their relative position in the input data set. For expample, if the
      analysis variables are in the order X1-X4 in the input data set, with
      the following statements you would encounter the problem:

         VAR X1 X3 / WEIGHT=W;
         VAR X2 X4;

      Where as with:

         VAR X1 X2 / WEIGHT=W;
         VAR X3 X4;

      you would not encounter the problem.

    Keywords:
      proc means summary weight var statement incorrect statistics incorrout
      output incorrstat
      proc means/summary may generate incorrect weighted statistics with
      multiple var statements
      003815 3815

    SAS Note Revised On: Tue, 21 Nov 2000

    System Version Reported Version Fixed

    AIX/6000 8.1 TS1M0 8.2
    VM/ESA (CMS) 8.1 TS1M0 8.2
    Compaq Tru64 UNIX 8.1 TS1M0 8.2
    HP-UX Operating Systems 8.1 TS1M0 8.2
    Intel ABI 8.1 TS1M0 8.2
    MIPS ABI 8.1 TS1M0 8.2
    OS/390 (MVS) 8.1 TS1M0 8.2
    IBM OS/2 8.1 TS1M0 8.2
    Solaris 8.1 TS1M0 8.2
    OpenVMS VAX 8.1 TS1M0 8.2
    OpenVMS Alpha 8.1 TS1M0 8.2
    Windows NT 8.1 TS1M0 8.2
    Windows 2000 Datacenter Server 8.1 TS1M0 8.2
    Windows 2000 Professional 8.1 TS1M0 8.2
    Windows 2000 Server and Advanced Server 8.1 TS1M0 8.2
    Windows 95 8.1 TS1M0 8.2
    Windows 98 8.1 TS1M0 8.2

    No Fixes Available

    +-------------------------------------------------------------------------
    + NOTE: To unsubscribe you can reply to this mail with:
    + "SIGNOFF tsnews-l"
    + as the only text in the body of the message (without the double quotes).
    + If you have any questions please send them to SUPPORT@SAS.COM
    +-------------------------------------------------------------------------



    This archive was generated by hypermail 2b29 : Mon Nov 27 2000 - 08:42:41 EST