Problem Note 69466: The LIFEREG procedure produces incorrect results when certain normal priors are specified in the BAYES statement
PROC LIFEREG generates incorrect results under the following conditions:
- You specify the COEFFPRIOR=NORMAL(INPUT=SAS-data-set) option in the BAYES statement.
- The INPUT= data set specifies independent normal prior variances in observations where _TYPE_='VAR'.
In this scenario, incorrect results are produced in several places, including the posterior summaries, the posterior sample, and in the OUTPOST= data set.
To circumvent this issue, create observations in the INPUT= data set where _TYPE_='COV' and the off-diagonal elements are zero.
For example, the following INPUT= data set contains the means and variances of the normal prior:
data Prior;
input _Type_ $ Intercept trtH trtL trtP;
datalines;
Mean 10 20 30 40
Var 1e4 2e4 3e4 4e4
;
run;
In the code above, you can circumvent incorrect results by creating the INPUT= data set using _TYPE_='COV' instead of _TYPE_='VAR', as shown below:
data Prior;
input _Type_ $ Intercept trtH trtL trtP;
datalines;
Mean 10 20 30 40
Cov 1e4 0 0 0
Cov 0 2e4 0 0
Cov 0 0 3e4 0
Cov 0 0 0 4e4
;
run;
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS/STAT | Microsoft Windows Server 2012 Std | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows Server 2012 R2 Std | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows Server 2012 R2 Datacenter | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows Server 2012 Datacenter | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows Server 2008 for x64 | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows Server 2008 R2 | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows Server 2008 | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows Server 2003 for x64 | 9.2 | | | |
Microsoft Windows Server 2003 Standard Edition | 9.2 | | | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 | | | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 | | | |
Microsoft Windows NT Workstation | 9.2 | | | |
Microsoft Windows 2000 Professional | 9.2 | | | |
Microsoft Windows 2000 Server | 9.2 | | | |
Microsoft Windows 2000 Datacenter Server | 9.2 | | | |
Microsoft Windows 2000 Advanced Server | 9.2 | | | |
Microsoft Windows 95/98 | 9.2 | | | |
Microsoft Windows 11 | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows 10 | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows 8.1 Pro x64 | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows 8.1 Pro 32-bit | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows 8.1 Enterprise x64 | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows 8 Pro x64 | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows 8 Pro 32-bit | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows 8 Enterprise x64 | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows 8 Enterprise 32-bit | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft® Windows® for x64 | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows XP 64-bit Edition | 9.2 | | | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 | | | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 | | | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 | | | |
z/OS | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows Server 2016 | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows Server 2019 | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows Server 2022 | 9.2 | 15.3 | | 9.4 TS1M8 |
Microsoft Windows XP Professional | 9.2 | | | |
Windows 7 Enterprise 32 bit | 9.2 | 15.3 | | 9.4 TS1M8 |
Windows 7 Enterprise x64 | 9.2 | 15.3 | | 9.4 TS1M8 |
Windows 7 Home Premium 32 bit | 9.2 | 15.3 | | 9.4 TS1M8 |
Windows 7 Home Premium x64 | 9.2 | 15.3 | | 9.4 TS1M8 |
Windows 7 Professional 32 bit | 9.2 | 15.3 | | 9.4 TS1M8 |
Windows 7 Professional x64 | 9.2 | 15.3 | | 9.4 TS1M8 |
Windows 7 Ultimate 32 bit | 9.2 | 15.3 | | 9.4 TS1M8 |
Windows 7 Ultimate x64 | 9.2 | 15.3 | | 9.4 TS1M8 |
Windows Millennium Edition (Me) | 9.2 | | | |
Windows Vista | 9.2 | | | |
Windows Vista for x64 | 9.2 | | | |
64-bit Enabled AIX | 9.2 | 15.3 | | 9.4 TS1M8 |
64-bit Enabled HP-UX | 9.2 | 15.3 | | 9.4 TS1M8 |
64-bit Enabled Solaris | 9.2 | 15.3 | | 9.4 TS1M8 |
HP-UX IPF | 9.2 | 15.3 | | 9.4 TS1M8 |
Linux | 9.2 | 15.3 | | 9.4 TS1M8 |
Linux for x64 | 9.2 | 15.3 | | 9.4 TS1M8 |
OpenVMS on HP Integrity | 9.2 | 15.3 | | 9.4 TS1M8 |
Solaris for x64 | 9.2 | 15.3 | | 9.4 TS1M8 |
*
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.
When normal prior variances are provided with the COEFF= option in the BAYES statement in PROC LIFEREG, incorrect results are generated.
Type: | Problem Note |
Priority: | medium |
Topic: | Analytics ==> Bayesian Analysis SAS Reference ==> Procedures ==> LIFEREG Analytics ==> Survival Analysis
|
Date Modified: | 2024-02-08 13:26:33 |
Date Created: | 2022-08-12 06:16:59 |