Problem Note 69195: The NLIN procedure stops processing when a BOOTSTRAP or a PROFILE statement is specified and multiple models are defined using IF-THEN statements
PROC NLIN fails to produce estimation results and returns the following error:
NOTE: The SAS System stopped processing this step because of errors.
This issue occurs when the following conditions are met:
- You specify multiple MODEL statements using IF-THEN statements but no DO groups.
- You specify a BOOTSTRAP statement or a PROFILE statement.
If you specify a PROFILE statement, the following error message also appears in the log:
ERROR: Profiling could not be done. Check the input program.
To avoid the problem, rewrite the model using only one MODEL statement. For example, specify the following model using two MODEL statements defined within IF-THEN statements and no DO groups:
if (x < x0) then model y = alpha + beta*x + gamma*x*x;
else model y = alpha + beta*x0 + gamma*x0*x0;
Rewrite the above model using one MODEL statement with either of the following approaches:
if (x < x0) then mean = alpha + beta*x + gamma*x*x;
else mean = alpha + beta*x0 + gamma*x0*x0;
model y = mean;
model y = (x < x0)*(alpha + beta*x + gamma*x*x) + (x >= x0)*(alpha + beta*x0 + gamma*x0*x0);
Note that you can also avoid the problem by including DO groups as follows:
if (x < x0) then do;
model y = alpha + beta*x + gamma*x*x;
end;
else do;
model y = alpha + beta*x0 + gamma*x0*x0;
end;
However, the results produced by the BOOTSTRAP statement or the PROFILE statement are incorrect if you use this workaround. For details, refer to SAS Note 69194, "The NLIN procedure might produce incorrect bootstrapping or profile results when multiple models are specified."
Operating System and Release Information
| SAS System | SAS/STAT | z/OS | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Microsoft® Windows® for x64 | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Microsoft Windows 8 Enterprise 32-bit | 13.1 | | 9.4 TS1M1 | |
| Microsoft Windows 8 Enterprise x64 | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Microsoft Windows 8 Pro 32-bit | 13.1 | | 9.4 TS1M1 | |
| Microsoft Windows 8 Pro x64 | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Microsoft Windows 8.1 Enterprise 32-bit | 13.1 | | 9.4 TS1M1 | |
| Microsoft Windows 8.1 Enterprise x64 | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Microsoft Windows 8.1 Pro 32-bit | 13.1 | | 9.4 TS1M1 | |
| Microsoft Windows 8.1 Pro x64 | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Microsoft Windows 10 | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Microsoft Windows Server 2008 | 13.1 | | 9.4 TS1M1 | |
| Microsoft Windows Server 2008 R2 | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Microsoft Windows Server 2008 for x64 | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Microsoft Windows Server 2012 Datacenter | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Microsoft Windows Server 2012 R2 Datacenter | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Microsoft Windows Server 2012 R2 Std | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Microsoft Windows Server 2012 Std | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Windows 7 Enterprise 32 bit | 13.1 | | 9.4 TS1M1 | |
| Windows 7 Enterprise x64 | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Windows 7 Home Premium 32 bit | 13.1 | | 9.4 TS1M1 | |
| Windows 7 Home Premium x64 | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Windows 7 Professional 32 bit | 13.1 | | 9.4 TS1M1 | |
| Windows 7 Professional x64 | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Windows 7 Ultimate 32 bit | 13.1 | | 9.4 TS1M1 | |
| Windows 7 Ultimate x64 | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| 64-bit Enabled AIX | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| 64-bit Enabled Solaris | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| HP-UX IPF | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Linux for x64 | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
| Solaris for x64 | 13.1 | 2022.1.2 | 9.4 TS1M1 | Viya |
*
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 multiple MODEL statements are specified in PROC NLIN with IF-THEN statements but no DO groups, and a BOOTSTRAP or a PROFILE statement is also specified, SAS® stops processing with errors.
| Type: | Problem Note |
| Priority: | high |
| Topic: | Analytics ==> Regression SAS Reference ==> Procedures ==> NLIN
|
| Date Modified: | 2022-06-30 10:22:17 |
| Date Created: | 2022-05-16 16:06:27 |