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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NLR 1051<br />

It is not necessary to use this command if you have already executed the [C]NLR procedure.<br />

Temporary variables associated with the procedure are automatically deleted.<br />

CNLR/NLR <strong>Command</strong><br />

Either the CNLR or the NLR command is required to specify the dependent and independent<br />

variables for the nonlinear regression.<br />

• For either CNLR or NLR, the minimum specification is a dependent variable.<br />

• Only one dependent variable can be specified. It must be a numeric variable in the working<br />

data file and cannot be a variable generated by the model or the derivatives program.<br />

OUTFILE Subcommand<br />

OUTFILE stores final parameter estimates for use on a subsequent [C]NLR command. The only<br />

specification on OUTFILE is the target file. Some or all of the values from this file can be read<br />

into a subsequent [C]NLR procedure with the FILE subcommand. The parameter data file<br />

created by OUTFILE stores the following variables:<br />

• All of the split-file variables. OUTFILE writes one case of values for each split-file group<br />

in the working data file.<br />

• All of the parameters named on the MODEL PROGRAM command.<br />

• The labels, formats, and missing values of the split-file variables and parameters defined<br />

for them previous to their use in the [C]NLR procedure.<br />

• The sum of squared residuals (named SSE). SSE has no labels or missing values. The print<br />

and write format for SSE is F10.8.<br />

• The number of cases on which the analysis was based (named NCASES). NCASES has no<br />

labels or missing values. The print and write format for NCASES is F8.0.<br />

When OUTFILE is used, the model program cannot create variables named SSE or NCASES.<br />

Example<br />

MODEL PROGRAM A=.5 B=1.6.<br />

COMPUTE PRED=A*SPEED**B.<br />

NLR STOP /OUTFILE=PARAM.<br />

• OUTFILE generates a parameter data file containing one case for four variables: A, B, SSE,<br />

and NCASES.<br />

FILE Subcommand<br />

FILE reads starting values for the parameters from a parameter data file created by an<br />

OUTFILE subcommand from a previous [C]NLR procedure. When starting values are read<br />

from a file, they do not have to be specified on the MODEL PROGRAM command. Rather, the<br />

MODEL PROGRAM command simply names the parameters that correspond to the parameters<br />

in the data file.<br />

• The only specification on FILE is the file that contains the starting values.

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

Saved successfully!

Ooh no, something went wrong!