27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example<br />

MODEL PROGRAM A=.6.<br />

COMPUTE PRED=EXP(A*X).<br />

NLR Y.<br />

Overview<br />

Options<br />

NLR 1045<br />

Nonlinear regression is used to estimate parameter values and regression statistics for models<br />

that are not linear in their parameters. SPSS has two procedures for estimating nonlinear<br />

equations. CNLR (constrained nonlinear regression), which uses a sequential quadratic<br />

programming algorithm, is applicable for both constrained and unconstrained problems. NLR<br />

(nonlinear regression), which uses a Levenberg-Marquardt algorithm, is applicable only for<br />

unconstrained problems.<br />

CNLR is more general. It allows linear and nonlinear constraints on any combination of<br />

parameters. It will estimate parameters by minimizing any smooth loss function (objective<br />

function), and can optionally compute bootstrap estimates of parameter standard errors and<br />

correlations. The individual bootstrap parameter estimates can optionally be saved in a separate<br />

SPSS data file.<br />

Both programs estimate the values of the parameters for the model and, optionally,<br />

compute and save predicted values, residuals, and derivatives. Final parameter estimates can<br />

be saved in an SPSS data file and used in subsequent analyses.<br />

CNLR and NLR use much of the same syntax. Some of the following sections discuss<br />

features common to both procedures. In these sections, the notation [C]NLR means that either<br />

the CNLR or NLR procedure can be specified. Sections that apply only to CNLR or only to NLR<br />

are clearly identified.<br />

The Model. You can use any number of transformation commands under MODEL PROGRAM<br />

to define complex models.<br />

Derivatives. You can use any number of transformation commands under DERIVATIVES to<br />

supply derivatives.<br />

Adding Variables to Working Data File. You can add predicted values, residuals, and derivatives<br />

to the working data file with the SAVE subcommand.<br />

Writing Parameter Estimates to a New Data File. You can save final parameter estimates as an<br />

external SPSS data file using the OUTFILE subcommand; you can retrieve them in subsequent<br />

analyses using the FILE subcommand.<br />

Controlling Model-Building Criteria. You can control the iteration process used in the regression<br />

with the CRITERIA subcommand.<br />

Additional CNLR Controls. For CNLR, you can impose linear and nonlinear constraints on the<br />

parameters with the BOUNDS subcommand. Using the LOSS subcommand, you can specify a<br />

loss function for CNLR to minimize and, using the BOOTSTRAP subcommand, you can provide<br />

bootstrap estimates of the parameter standard errors, confidence intervals, and correlations.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!