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.

1054 NLR<br />

Example<br />

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

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

NLR STOP /PRED=PSTOP<br />

/SAVE=RESID(RSTOP) DERIVATIVES PRED.<br />

REGRESSION VARIABLES=STOP D.A D.B /ORIGIN<br />

/DEPENDENT=STOP /ENTER D.A D.B /RESIDUALS.<br />

• The SAVE subcommand creates the residuals variable RSTOP and the derivative variables<br />

D.A and D.B.<br />

• Because the PRED subcommand identifies PSTOP as the variable for predicted values in<br />

the nonlinear model, keyword PRED on SAVE adds the variable PSTOP to the working<br />

data file.<br />

• The new variables are added to the working data file in the following order: PSTOP,<br />

RSTOP, D.A, and D.B.<br />

• The subcommand RESIDUALS for REGRESSION produces the default analysis of residuals.<br />

CRITERIA Subcommand<br />

CRITERIA controls the values of the cutoff points used to stop the iterative calculations in<br />

[C]NLR.<br />

• The minimum specification is any of the criteria keywords and an appropriate value. The<br />

value can be specified in parentheses after an equals sign, a space, or a comma. Multiple<br />

keywords can be specified in any order. Defaults are in effect for keywords not specified.<br />

• Keywords available for CRITERIA differ between CNLR and NLR and are discussed separately.<br />

However, with both CNLR and NLR, you can specify the critical value for derivative<br />

checking.<br />

Checking Derivatives for CNLR and NLR<br />

Upon entering the first iteration, [C]NLR always checks any derivatives calculated on the<br />

derivatives program by comparing them with numerically calculated derivatives. For each<br />

comparison, it computes an agreement score. A score of 1 indicates agreement to machine<br />

precision; a score of 0 indicates definite disagreement. If a score is less than 1, either an<br />

incorrect derivative was supplied or there were numerical problems in estimating the derivative.<br />

The lower the score, the more likely it is that the supplied derivatives are incorrect.<br />

Highly correlated parameters may cause disagreement even when a correct derivative is<br />

supplied. Be sure to check the derivatives if the agreement score is not 1.<br />

During the first iteration, [C]NLR checks each derivative score. If any score is below 1, it<br />

begins displaying a table to show the worst (lowest) score for each derivative. If any score is<br />

below the critical value, the program stops.<br />

To specify the critical value, use the following keyword on CRITERIA:<br />

CKDER n Critical value for derivative checking. Specify a number between 0 and 1 for<br />

n. The default is 0.5. Specify 0 to disable this criterion.

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

Saved successfully!

Ooh no, something went wrong!