NL

The NL command estimates non-linear models.

In general, the format is:

  NL neq exogs / NCOEF= GMM= options
  EQ equation
  ...
  EQ equation
  COEF coef1 value1 coef2 value2 ...
  END

where exogs are the list of instrumental variables for N2SLS or N3SLS.


The available options are:

Option Description
ACROSS Corrects for autocorrelation across equations as well as within a single equation.
AUTO Corrects the equations for first-order autocorrelation or for higher order if specified on the ORDER= option.
DN Estimates the error variance by dividing the residual sum of squares by N instead of N–K. This option is the default. Use NODN to divide by N-K.
DRHO Gives a different value of rho for each equation.
DUMP Dumps the internal code that SHAZAM has generated for the EQ commands.
EVAL Evaluates the likelihood function for the starting value prints out the answer without doing any estimation if ITER=0 is specified.
GENRVAR Takes a vector of coefficients and generates a set of scalar variables.
LOGDEN Tells SHAZAM that the equation given on the EQ command is the LOG-DENSITY for a single observation.
MAXFUNC Maximizes the function given on the EQ command.
MINFUNC Minimizes the equation given on the EQ command.
NOCONEXOG Do not include a constant in the list of exogs variables.
NOPSIGMA Suppress printing of the sigma matrix.
NUMCOV Uses numeric difference method to compute derivatives in the algorithm.
NUMERIC Uses the numeric difference method to compute derivative used in the algorithm.
OPGCOV Uses the outer-product of the Gradient method to compute the covariance matrix.
PCOV Prints an estimate of the covariance matrix of coefficients after convergence.
SAME Will run the previous NL regression without repeating the EQ commands.
SOLVE Solves the equations given on the EQ command as a set of nonlinear simultaneous equations.
AUTCOV= Lag length used with the GMM= option.
CONV= Specifies the convergence criterion for the coefficients.
IN= Reads back the coefficients that were saved with the OUT option.
ITER= Specifies the maximum number of iterations.
GMM= Specifies the weighting matrix for Generalized Method of Moments estimation.
GMMOUT= Saves the weighting matrix in the variable specified. This option is available with GMM=HETCOV, BARTLETT, TRUNC, QS, PARZEN or TUKEY.
METHOD= Default is Davidon-Fletcher-Powell algorithm. An alternative is the Broyden-Fletcher-Goldfarb-Shanno (BFGS) or Simulated Annealing (SA).
HYBRID Specifies that Simulated Annealing should be used to estimate a set of starting points and subsequently the method specified in METHOD= should be used to find the solution to the problem.
SAITER= Specifies the maximum number of function trials the Simulated Annealing algorithm will evaluate before returning. Requires METHOD=SA or HYBRID
SACONV= Specifies the convergence criterion of the Simulated Annealing algorithm. Requires METHOD=SA or HYBRID.
SAUPPER= A vector used to specify upper limits on the range of allowed coefficients. Requires METHOD=SA or HYBRID.
SALOWER= A vector used to specify lower limits on the range of allowed coefficients. Requires METHOD=SA or HYBRID.
SANEPS= Specifies how many function evaluations should be used to determine convergence of when performing Simulated Annealing. Requires METHOD=SA or HYBRID.
SANS= Determines the number of cycles the Simulated Annealing algorithm iterates through. Requires METHOD=SA or HYBRID.
SANT= Determines how many evaluations that should be used by Simulated Annealing before reducing the, internal, temperature variable. Requires METHOD=SA or HYBRID.
SATRF= A positive value, between 0 and 1, that determines how slowly simulated annealing reduces the internal temperature variable. Requires METHOD=SA or HYBRID.
SAUPFAC= A factor that can be used to specify the upper bounds array in terms of a factor applied to the initial conditions vector. Requires METHOD=SA or HYBRID.
SALOWFAC= A factor that is can be used to specify the lower bounds array in terms of a factor applied to the initial conditions vector. Requires METHOD=SA or HYBRID.
NCOEF= Specifies the number of coefficients to be estimated.
ORDER= Specifies the order of autocorrelation to be corrected for when the AUTO option is used.
OUT= Writes out on unit 3 the values of the coefficients after each iteration. Useful for restarting the model in another run with the IN option described above.
PITER= Specifies the frequency with which iterations will be printed.
SIGMA= Saves the sigma matrix in the variable specified.
START= Uses the values in the specified variable as starting values for the estimation.
STEPSIZE= Specifies the stepsize to use with the NUMCOV option to control the differential in numeric derivatives.
ZMATRIX= Specifies a matrix to create and use to store the derivatives of the nonlinear function.

Other available options are:
LIST, RSTAT, BEG=, END=, COEF=, COV=, PREDICT=, RESID=, STDERR=, and TRATIO= as described for OLS.