The NLIN Procedure

Example 83.4 Affecting Curvature through Parameterization

(View the complete code for this example.)

The work of Ratkowsky (1983, 1990) has brought into focus the importance of close-to-linear behavior of parameters in nonlinear regression models. The curvature in a nonlinear model consists of two components: the intrinsic curvature and the parameter-effects curvature. See the section Relative Curvature Measures of Nonlinearity for details. Intrinsic curvature expresses the degree to which the nonlinear model bends as values of the parameters change. This is not the same as the curviness of the model as a function of the covariates (the x variables). Intrinsic curvature is a function of the type of model you are fitting and the data. This curvature component cannot be affected by reparameterization of the model. According to Ratkowsky (1983), the intrinsic curvature component is typically smaller than the parameter-effects curvature, which can be affected by altering the parameterization of the model.

In models with low curvature, the nonlinear least squares parameter estimators behave similarly to least squares estimators in linear regression models, which have a number of desirable properties. If the model is correct, they are best linear unbiased estimators and are normally distributed if the model errors are normal (otherwise they are asymptotically normal). As you lower the curvature of a nonlinear model, you can expect that the parameter estimators approach the behavior of the linear regression model estimators: they behave "close to linear."

This example uses a simple data set and a commonly applied model for dose-response relationships to examine how the parameter-effects curvature can be reduced. The statistics by which an estimator’s behavior is judged are Box’s bias (Box 1971) and Hougaard’s measure of skewness (Hougaard 1982, 1985).

The log-logistic model

is a popular model to express the response Y as a function of dose x. The response is bounded between the asymptotes and . The term in the denominator governs the transition between the asymptotes and depends on two parameters, and . The log-logistic model can be viewed as a member of a broader class of dose-response functions, those relying on switch-on or switch-off mechanisms (see, for example, Schabenberger and Pierce 2002, sec. 5.8.6). A switch function is usually a monotonic function that takes values between 0 and 1. A switch-on function increases in x; a switch-off function decreases in x. In the log-logistic case, the function

is a switch-off function for and a switch-on function for . You can write general dose-response functions with asymptotes simply as

The following DATA step creates a small data set from a dose-response experiment with response y:

data logistic;
   input dose y;
   logdose = log(dose);
   datalines;
0.009  106.56
0.035   94.12
0.07    89.76
0.15    60.21
0.20    39.95
0.28    21.88
0.50     7.46
;

A graph of these data is produced with the following statements:

proc sgplot data=logistic;
   scatter y=y x=dose;
   xaxis type=log logstyle=linear;
run;

Output 83.4.1: Observed Data in Dose-Response Experiment

 Observed Data in Dose-Response Experiment


When dose is expressed on the log scale, the sigmoidal shape of the dose-response relationship is clearly visible (Output 83.4.1). The log-logistic switching model in the preceding parameterization is fit with the following statements in the NLIN procedure:

proc nlin data=logistic bias hougaard nlinmeasures;
   parameters alpha=100 beta=3 gamma=300;
   delta = 0;
   Switch = 1/(1+gamma*exp(beta*log(dose)));
   model y = delta + (alpha - delta)*Switch;
run;

The lower asymptote is assumed to be 0 in this case. Since is not listed in the PARAMETERS statement and is assigned a value in the program, it is assumed to be constant. Note that the term Switch is the switch-off function in the log-logistic model. The BIAS and HOUGAARD options in the PROC NLIN statement request that Box’s bias, percentage bias, and Hougaard’s skewness measure be added to the table of parameter estimates, and the NLINMEASURES option requests that the global nonlinearity measures be produced.

The NLIN procedure converges after 10 iterations and achieves a residual mean squared error of 15.1869 (Output 83.4.2). This value is not that important by itself, but it is worth noting since this model fit is compared to the fit with other parameterizations later on.

Output 83.4.2: Iteration History and Analysis of Variance

The NLIN Procedure
Dependent Variable y
Method: Gauss-Newton

Iterative Phase
IteralphabetagammaSum of Squares
0100.03.0000300.0386.4
1100.42.8011162.8129.1
2100.82.6184101.469.2710
3101.32.426669.757968.2167
4101.72.379069.035860.8223
5101.82.362167.370960.7516
6101.82.358267.004460.7477
7101.82.357366.915060.7475
8101.82.357166.894860.7475
9101.82.357066.890260.7475
10101.82.357066.889260.7475

NOTE: Convergence criterion met.


Note:An intercept was not specified for this model.

SourceDFSum of SquaresMean SquareF ValueApprox
Pr > F
Model333965.411321.8745.50<.0001
Error460.747515.1869  
Uncorrected Total734026.1   


The table of parameter estimates displays the estimates of the three model parameters, their approximate standard errors, 95% confidence limits, Hougaard’s skewness measure, Box’s bias, and percentage bias (Output 83.4.3). Parameters for which the skewness measure is less than 0.1 in absolute value and with percentage bias less than 1% exhibit very close-to-linear behavior, and skewness values less than 0.25 in absolute value indicate reasonably close-to-linear behavior (Ratkowsky 1990). According to these rules, the estimators and suffer from substantial curvature. The estimator is especially "far-from-linear." Inferences that involve and rely on the reported standard errors or confidence limits (or both) for this parameter might be questionable.

Output 83.4.3: Parameter Estimates, Hougaard’s Skewness, and Box’s Bias

ParameterEstimateApprox
Std Error
Approximate 95% Confidence
Limits
SkewnessBiasPercent
Bias
alpha101.83.003493.4751110.20.14150.15120.15
beta2.35700.29281.54403.16990.49870.03031.29
gamma66.889231.6146-20.8870154.71.920010.923016.3


The related global nonlinearity measures output table (Output 83.4.4) shows that both the maximum and RMS parameter-effects curvature are substantially larger than the critical curvature value recommended by Bates and Watts (1980). In contrast, the intrinsic curvatures of the model are less than the critical value. This implies that most of the nonlinearity can be removed by reparameterization.

Output 83.4.4: Global Nonlinearity Measures

Global Nonlinearity Measures
Max Intrinsic Curvature0.2397
RMS Intrinsic Curvature0.1154
Max Parameter-Effects Curvature4.0842
RMS Parameter-Effects Curvature1.8198
Curvature Critical Value0.3895
Raw Residual Variance15.187
Projected Residual Variance5.922


One method of reducing the parameter-effects curvature, and thereby reduce the bias and skewness of the parameter estimators, is to replace a parameter with its expected-value parameterization. Schabenberger et al. (1999) and Schabenberger and Pierce (2002, sec. 5.7.2) refer to this method as reparameterization through defining relationships. A defining relationship is obtained by equating the mean response at a chosen value of x (say, ) to the model:

This equation is then solved for a parameter that is subsequently replaced in the original equation. This method is particularly useful if has an interesting interpretation. For example, let denote the value that reduces the response by %,

Because exhibits large bias and skewness, it is the target in the first round of reparameterization. Setting the expression for the conditional mean at equal to the mean function when yields the following expression:

This expression is solved for , and the result is substituted back into the model equation. This leads to a log-logistic model in which is replaced by the parameter , the dose at which the response was reduced by %. The new model equation is

A particularly interesting choice is K = 50, since is the dose at which the response is halved. In studies of mortality, this concentration is also known as the LD50. For the special case of the model equation becomes

You can fit the model in the LD50 parameterization with the following statements:

proc nlin data=logistic bias hougaard;
   parameters alpha=100 beta=3 LD50=0.15;
   delta = 0;
   Switch = 1/(1+exp(beta*log(dose/LD50)));
   model y = delta + (alpha - delta)*Switch;
   output out=nlinout pred=p lcl=lcl ucl=ucl;
run;

Partial results from this NLIN run are shown in Output 83.4.5. The analysis of variance tables in Output 83.4.2 and Output 83.4.5 are identical. Changing the parameterization of a model does not affect the model fit. It does, however, affect the interpretation of the parameters and the statistical properties (close-to-linear behavior) of the parameter estimators. The skewness and bias measures of the parameter LD50 is considerably reduced compared to those values for the parameter in the previous parameterization. Also, has been replaced by a parameter with a useful interpretation, the dose that yields a 50% reduction in mean response. Also notice that the bias and skewness measures of and are not affected by the LD50 reparameterization.

Output 83.4.5: ANOVA Table and Parameter Estimates in LD50 Parameterization

The NLIN Procedure
Dependent Variable y
Method: Gauss-Newton

NOTE: Convergence criterion met.


Note:An intercept was not specified for this model.

SourceDFSum of SquaresMean SquareF ValueApprox
Pr > F
Model333965.411321.8745.50<.0001
Error460.747515.1869  
Uncorrected Total734026.1   

ParameterEstimateApprox
Std Error
Approximate 95% Confidence
Limits
SkewnessBiasPercent
Bias
alpha101.83.003493.4752110.20.14150.15120.15
beta2.35700.29281.54403.16990.49870.03031.29
LD500.16810.009150.14270.1935-0.0605-0.00013-0.08


To reduce the parameter-effects curvature of the parameter, you can use the technique of defining relationships again. This can be done generically, by solving

for , treating as the new parameter (in lieu of ), and choosing a value for that leads to low skewness. This results in the expected-value parameterization of . Solving for yields

The interpretation of the parameter that replaces in the model equation is simple: it is the mean dose response when the dose is . Fixing , the following PROC NLIN statements fit this model:

proc nlin data=logistic bias hougaard nlinmeasures;
   parameters alpha=100 mustar=20 LD50=0.15;
   delta   = 0;
   xstar   = 0.3;
   beta    = log((alpha - mustar)/(mustar - delta)) / log(xstar/LD50);
   Switch  = 1/(1+exp(beta*log(dose/LD50)));
   model y = delta + (alpha - delta)*Switch;
   output out=nlinout pred=p lcl=lcl ucl=ucl;
run;

Note that the switch-off function continues to be written in terms of and the LD50. The only difference from the previous model is that is now expressed as a function of the parameter . Using expected-value parameterizations is a simple mechanism to lower the curvature in a model and to arrive at starting values. The starting value for can be gleaned from Output 83.4.1 at x = 0.3.

Output 83.4.6 shows selected results from this NLIN run. The ANOVA table is again unaffected by the change in parameterization. The skewness for is significantly reduced in comparison to those of the parameter in the previous model (compare Output 83.4.6 and Output 83.4.5), while its bias remains on the same scale from Output 83.4.5 to Output 83.4.6. Also note the substantial reduction in the parameter-effects curvature values. As expected, the intrinsic curvature values remain intact.

Output 83.4.6: ANOVA Table and Parameter Estimates in Expected-Value Parameterization

The NLIN Procedure
Dependent Variable y
Method: Gauss-Newton

NOTE: Convergence criterion met.


Note:An intercept was not specified for this model.

SourceDFSum of SquaresMean SquareF ValueApprox
Pr > F
Model333965.411321.8745.50<.0001
Error460.747515.1869  
Uncorrected Total734026.1   

ParameterEstimateApprox
Std Error
Approximate 95% Confidence
Limits
SkewnessBiasPercent
Bias
alpha101.83.003493.4752110.20.14150.15120.15
mustar20.70732.643013.369328.0454-0.0572-0.0983-0.47
LD500.16810.009150.14270.1935-0.0605-0.00013-0.08

Global Nonlinearity Measures
Max Intrinsic Curvature0.2397
RMS Intrinsic Curvature0.1154
Max Parameter-Effects Curvature0.2925
RMS Parameter-Effects Curvature0.1500
Curvature Critical Value0.3895
Raw Residual Variance15.187
Projected Residual Variance5.9219


Last updated: February 13, 2019