The NLIN Procedure

Nonlinear or Linear Model

The NLIN procedure performs univariate nonlinear regression by using the least squares method. Nonlinear regression analysis is indicated when the functional relationship between the response variable and the predictor variables is nonlinear. Nonlinearity in this context refers to a nonlinear relationship in the parameters. Many linear regression models exhibit a relationship in the regressor (predictor) variables that is not simply a straight line. This does not make the models nonlinear. A model is nonlinear in the parameters if the derivative of the model with respect to a parameter depends on this or other parameters.

Consider, for example the models

\begin{align*}  \mr {E}[Y|x] & = \beta _0 + \beta _1 x \\ \mr {E}[Y|x] & = \beta _0 + \beta _1 x + \beta _2 x^2 \\ \mr {E}[Y|x] & = \beta + x/\alpha \end{align*}

In these expressions, $\mr {E}[Y|x]$ denotes the expected value of the response variable Y at the fixed value of x. (The conditioning on x simply indicates that the predictor variables are assumed to be non-random in models fit by the NLIN procedure. Conditioning is often omitted for brevity in this chapter.)

Only the third model is a nonlinear model. The first model is a simple linear regression. It is linear in the parameters $\beta _0$ and $\beta _1$ since the model derivatives do not depend on unknowns:

\begin{align*}  \frac{\partial }{\beta _0}\left(\beta _0 + \beta _1 x\right) & = 1 \\ \frac{\partial }{\beta _1}\left(\beta _0 + \beta _1 x\right) & = x \\ \end{align*}

The model is also linear in its relationship with x (a straight line). The second model is also linear in the parameters, since

\begin{align*}  \frac{\partial }{\beta _0}\left(\beta _0 + \beta _1 x + \beta _2x^2\right) & = 1 \\ \frac{\partial }{\beta _1}\left(\beta _0 + \beta _1 x + \beta _2x^2\right) & = x \\ \frac{\partial }{\beta _2}\left(\beta _0 + \beta _1 x + \beta _2x^2\right) & = x^2 \\ \end{align*}

It is a curvilinear model since it exhibits a curved relationship when plotted against x. The third model, finally, is a nonlinear model since

\begin{align*}  \frac{\partial }{\beta } \left(\beta + x/\alpha \right) & = 1 \\ \frac{\partial }{\alpha }\left(\beta + x/\alpha \right) & = -\frac{x}{\alpha ^2} \\ \end{align*}

The second of these derivatives depends on a parameter $\alpha $. A model is nonlinear if it is not linear in at least one parameter.