Running the Analysis

  1. To run a Nonlinear Regression analysis, from the menus choose:

    Analyze > Regression > Nonlinear...

    Figure 1. Nonlinear Regression main dialog box
    Nonlinear Regression main dialog box
  2. Select Detrended sales as the dependent variable.
  3. Type b1 + b2*exp(b3*advert) as the model expression.
  4. Click Parameters....
    Figure 2. Parameters dialog box
    Parameters dialog box
  5. Type b1 as the parameter name.
  6. Type 13 as the starting value.
  7. Click Add.
  8. Type b2 as the parameter name.
  9. Type -6 as the starting value.
  10. Click Add.
  11. Type b3 as the parameter name.
  12. Type -1.33 as the starting value.
  13. Click Add.
  14. Click Continue.
  15. Click Constraints in the Nonlinear Regression dialog box.
    Figure 3. Constraint dialog box
    Constraint dialog box
  16. Select Define parameter constraint.
  17. Select b1 as the parameter to be constrained.
  18. Select >= from the dropdown list.
  19. Type 0 as the constraint.
  20. Click Add.
  21. Select b2 as the parameter to be constrained.
  22. Select <= from the dropdown list and type 0 as the constraint.
  23. Click Add.
  24. Select b3 as the parameter to be constrained.
  25. Select <= from the dropdown list and type 0 as the constraint.
  26. Click Add.
  27. Click Continue.
    Figure 4. Warning dialog box
    Warning dialog box
  28. Click OK in the warning. The sequential quadratic programming algorithm will be used instead.
  29. Click Save in the Nonlinear Regression dialog box.
    Figure 5. Save dialog box
    Save dialog box
  30. Select Predicted values and Residuals.
  31. Click Continue.
  32. Click OK in the Nonlinear Regression dialog box.

Next