Problem Note 59705: The SURVEYSELECT procedure might produce an incorrect stratified sample when the RANUNI option is omitted
When an equal-probability sample is selected in PROC SURVEYSELECT and a STRATA statement is specified, unequal selection probabilities might be used. When this happens, the resulting sample is incorrect. This problem can occur when the METHOD= option is omitted or if any of the following METHOD= options are specified in the PROC SURVEYSELECT statement:
- SRS
- URS
- SYS
- SEQ or CHROMY
- BERNOULLI
To circumvent this problem, specify the RANUNI option in the PROC SURVEYSELECT statement.
Operating System and Release Information
SAS System | SAS/STAT | z/OS | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft® Windows® for x64 | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8 Enterprise 32-bit | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8 Enterprise x64 | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8 Pro 32-bit | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8 Pro x64 | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8.1 Enterprise 32-bit | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8.1 Enterprise x64 | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8.1 Pro 32-bit | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8.1 Pro x64 | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2003 Datacenter Edition | 12.1 | | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Enterprise Edition | 12.1 | | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Standard Edition | 12.1 | | 9.3 TS1M2 | |
Microsoft Windows Server 2003 for x64 | 12.1 | | 9.3 TS1M2 | |
Microsoft Windows Server 2008 | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2008 R2 | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2008 for x64 | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2012 Datacenter | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2012 R2 Datacenter | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2012 R2 Std | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2012 Std | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft Windows XP Professional | 12.1 | | 9.3 TS1M2 | |
Windows 7 Enterprise 32 bit | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Windows 7 Enterprise x64 | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Windows 7 Home Premium 32 bit | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Windows 7 Home Premium x64 | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Windows 7 Professional 32 bit | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Windows 7 Professional x64 | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Windows 7 Ultimate 32 bit | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Windows 7 Ultimate x64 | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Windows Vista | 12.1 | | 9.3 TS1M2 | |
Windows Vista for x64 | 12.1 | | 9.3 TS1M2 | |
64-bit Enabled AIX | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
64-bit Enabled HP-UX | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
64-bit Enabled Solaris | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
HP-UX IPF | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Linux | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Linux for x64 | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
Solaris for x64 | 12.1 | 14.1 | 9.3 TS1M2 | 9.4 TS1M3 |
*
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.
The RANUNI option should be specified when selecting a stratified sample in PROC SURVEYSELECT in certain releases.
Type: | Problem Note |
Priority: | high |
Topic: | Analytics ==> Survey Sampling and Analysis SAS Reference ==> Procedures ==> SURVEYSELECT
|
Date Modified: | 2017-01-17 12:14:38 |
Date Created: | 2017-01-17 09:39:52 |