Overview (NLR command)
Nonlinear regression is used to estimate parameter
values and regression statistics for models that are not linear in
their parameters. There are two procedures for estimating nonlinear
equations. CNLR (constrained
nonlinear regression), which uses a sequential quadratic programming
algorithm, is applicable for both constrained and unconstrained problems. NLR (nonlinear regression), which uses a
Levenberg-Marquardt algorithm, is applicable only for unconstrained
problems.
CNLR is more
general. It allows linear and nonlinear constraints on any combination
of parameters. It will estimate parameters by minimizing any smooth
loss function (objective function) and can optionally compute bootstrap
estimates of parameter standard errors and correlations. The individual
bootstrap parameter estimates can optionally be saved in a separate IBM® SPSS® Statistics data file.
Both programs estimate the values of the parameters for the model and, optionally, compute and save predicted values, residuals, and derivatives. Final parameter estimates can be saved in IBM SPSS Statistics data files and used in subsequent analyses.
CNLR and NLR use much of the same syntax. Some of
the following sections discuss features that are common to both procedures.
In these sections, the notation [C]NLR means that either the CNLR or NLR procedure can be specified. Sections
that apply only to CNLR or only
to NLR are clearly identified.
Options
The Model. You can use any number of transformation commands
under MODEL PROGRAM to define
complex models.
Derivatives. You can use any number of transformation
commands under DERIVATIVES to
supply derivatives.
Adding Variables to Active Dataset. You
can add predicted values, residuals, and derivatives to the active
dataset with the SAVE subcommand.
Writing Parameter
Estimates to a New Data File. You can save final parameter
estimates as an external IBM SPSS Statistics data file by using the OUTFILE subcommand; you can retrieve them in subsequent analyses by using
the FILE subcommand.
Controlling Model-Building
Criteria. You can control the iteration process that is
used in the regression with the CRITERIA subcommand.
Additional CNLR Controls. For CNLR, you can impose linear and nonlinear constraints
on the parameters with the BOUNDS subcommand. Using the LOSS subcommand,
you can specify a loss function for CNLR to minimize and, using the BOOTSTRAP subcommand, you can provide bootstrap estimates of the parameter
standard errors, confidence intervals, and correlations.
Basic Specification
The basic specification
requires three commands: MODEL PROGRAM, COMPUTE (or any other computational
transformation command), and [C]NLR.
- The
MODEL PROGRAMcommand assigns initial values to the parameters and signifies the beginning of the model program. - The computational
transformation command generates a new variable to define the model.
The variable can take any legitimate name, but if the name is not PRED, the
PREDsubcommand will be required. - The
[C]NLRcommand provides the regression specifications. The minimum specification is the dependent variable. - By default, the residual sum of squares and estimated values of the model parameters are displayed for each iteration. Statistics that are generated include regression and residual sums of squares and mean squares, corrected and uncorrected total sums of squares, R 2, parameter estimates with their asymptotic standard errors and 95% confidence intervals, and an asymptotic correlation matrix of the parameter estimates.
Command Order
- The model program,
beginning with the
MODEL PROGRAMcommand, must precede the[C]NLRcommand. - The derivatives program (when used),
beginning with the
DERIVATIVEScommand, must follow the model program but precede the[C]NLRcommand. - The
constrained functions program (when used), beginning with the
CONSTRAINED FUNCTIONScommand, must immediately precede theCNLRcommand. The constrained functions program cannot be used with theNLRcommand. - The
CNLRcommand must follow the block of transformations for the model program and the derivatives program when specified; theCNLRcommand must also follow the constrained functions program when specified. - Subcommands on
[C]NLRcan be named in any order.
Syntax Rules
- The
FILE,OUTFILE,PRED, andSAVEsubcommands work the same way for bothCNLRandNLR. - The
CRITERIAsubcommand is used by bothCNLRandNLR, but iteration criteria are different. Therefore, theCRITERIAsubcommand is documented separately forCNLRandNLR. - The
BOUNDS,LOSS, andBOOTSTRAPsubcommands can be used only withCNLR. They cannot be used withNLR.