Problem Note 4855: NEGBIN Distribution Produces Incorrect Results in PROC NLMIXED
PROC NLMIXED reports incorrect statistics for all values associated with
the NEGBIN distribution. To circumvent this problem, program the NEGBIN
distribution using the GENERAL likelihood specification. For example,
if the original specification of the negative binomial looks like:
proc nlmixed data=yourdata;
parms int 2 n 2;
p=1/(1+exp(int)/n);
model y~negbin(n,p);
run;
then the correct code for the GENERAL likelihood specification would be:
proc nlmixed data=yourdata;
parms int 2 n 2;
p=1/(1+exp(int)/n);
ll=lgamma(n+y)-lgamma(n)-lgamma(1+y)+n*log(p)+y*log(1-p);
model y~general(ll);
run;
A Technical Support hot fix for Release 8.2 TSLEVEL TS2M0 for this
issue is available at:
http://www.sas.com/techsup/download/hotfix/82_sbcs_prod_list.html#004855
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#004855
Operating System and Release Information
| SAS System | SAS/STAT | Microsoft Windows 2000 Server | 8.1 TS1M0 | 9 TS M0 |
| Microsoft Windows NT Workstation | 8.1 TS1M0 | 9 TS M0 |
| Microsoft Windows 95/98 | 8.1 TS1M0 | |
| Microsoft Windows 2000 Datacenter Server | 8.1 TS1M0 | 9 TS M0 |
| Microsoft Windows 2000 Professional | 8.1 TS1M0 | 9 TS M0 |
| Microsoft Windows 2000 Advanced Server | 8.1 TS1M0 | 9 TS M0 |
| Solaris | 8.1 TS1M0 | |
| OpenVMS VAX | 8.1 TS1M0 | |
| 64-bit Enabled Solaris | 8.1 TS1M0 | |
| IRIX | 8.1 TS1M0 | |
| z/OS | 8.1 TS1M0 | 9 TS M0 |
| OS/2 | 8.1 TS1M0 | |
| ABI+ for Intel Architecture | 8.1 TS1M0 | |
| Tru64 UNIX | 8.1 TS1M0 | 9 TS M0 |
| 64-bit Enabled AIX | 8.1 TS1M0 | |
| OpenVMS Alpha | 8.1 TS1M0 | 9 TS M0 |
| CMS | 8.1 TS1M0 | |
| HP-UX | 8.1 TS1M0 | |
| 64-bit Enabled HP-UX | 8.1 TS1M0 | |
| AIX | 8.1 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.
| Type: | Problem Note |
| Priority: | alert |
| Topic: | SAS Reference ==> Procedures ==> NLMIXED Analytics ==> Mixed Models
|
| Date Modified: | 2002-04-29 14:46:15 |
| Date Created: | 2001-04-30 17:33:58 |