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.

Caution<br />

NLR 1049<br />

The selection of good initial values for the parameters in the model program is very important<br />

to the operation of [C]NLR. The selection of poor initial values can result in no solution,<br />

a local rather than a general solution, or a physically impossible solution.<br />

Example<br />

MODEL PROGRAM A=10 B=1 C=5 D=1.<br />

COMPUTE PRED= A*exp(B*X) + C*exp(D*X).<br />

• The MODEL PROGRAM command assigns starting values to the four parameters A, B, C,<br />

and D.<br />

• COMPUTE defines the model to be fit as the sum of two exponentials.<br />

DERIVATIVES <strong>Command</strong><br />

The optional DERIVATIVES command signifies the beginning of the derivatives program. The<br />

derivatives program contains transformation statements for computing some or all of the<br />

derivatives of the model. The derivatives program must follow the model program but<br />

precede the [C]NLR command.<br />

If the derivatives program is not used, [C]NLR numerically estimates derivatives for all the<br />

parameters. Providing derivatives reduces computation time and, in some situations, may<br />

result in a better solution.<br />

• The DERIVATIVES command has no further specifications but must be followed by the set<br />

of transformation statements that calculate the derivatives.<br />

• You can use any computational commands (such as COMPUTE, IF, DO IF, LOOP, END<br />

LOOP, END IF, RECODE, or COUNT) or output commands (WRITE, PRINT, or XSAVE) in<br />

the derivatives program, but you cannot use input commands (such as DATA LIST, GET,<br />

MATCH FILES, or ADD FILES).<br />

• To name the derivatives, specify the prefix D. before each parameter name. For example,<br />

the derivative name for the parameter PARM1 must be D.PARM1.<br />

• Once a derivative has been calculated by a transformation, the variable for that derivative<br />

can be used in subsequent transformations.<br />

• You do not need to supply all of the derivatives. Those that are not supplied will be estimated<br />

by the program. During the first iteration of the nonlinear estimation procedure,<br />

derivatives calculated in the derivatives program are compared with numerically calculated<br />

derivatives. This serves as a check on the supplied values (see the CRITERIA subcommand<br />

on p. 1054).<br />

• Transformations in the derivatives program are used by [C]NLR only and do not affect the<br />

working data file.<br />

• For NLR, the derivative of each parameter must be computed with respect to the predicted<br />

function. (For computation of derivatives in CNLR, see the LOSS subcommand on p.<br />

1058.)

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

Saved successfully!

Ooh no, something went wrong!