StatLabStudent EditionUser guideGalleryFeaturesAbout

Nonlinear regression

Nonlinear regression fits a model you write yourself, such as a growth curve or a saturation curve, with parameters estimated by least squares (Levenberg-Marquardt). You give a model expression and a starting value for every parameter.

Menu: Analyze → Regression → Nonlinear…

When should I use Nonlinear regression?

What are the assumptions?

How do I run it in StatLab?

  1. Choose the dependent variable.
  2. Type the model, using variable names, parameter names and Compute functions, e.g. a * EXP(b * age).
  3. List the parameters with starting values, e.g. a=1 b=0.1.
  4. Optionally save predicted values and residuals.

How do I read the output?

OutputMeaning
Iteration HistoryResidual sum of squares and parameter values as the fit improves.
Parameter EstimatesEstimates, standard errors and 95% confidence intervals.
Correlations of Parameter EstimatesValues near ±1 mean the parameters are hard to separate.
ANOVARegression, residual and total sums of squares; R² = 1 − residual SS / corrected total SS.

Worked example

Fit score = a + b·LN(age) in the bundled sample dataset (File → Sample dataset: 150 survey respondents with gender, programme group, age, pre/post test scores, five satisfaction items, income, smoking and education): a = 43.02, b = 7.26 (SE 1.52), R² = .13.

How would I report it in APA style?

A logarithmic model of wellbeing on age, fitted by nonlinear least squares, gave b = 7.26 (SE = 1.52), R² = .13.

Numbers above were computed by StatLab’s validated engine from the sample dataset when this page was built.

What are common mistakes?

Where can I see it worked through?

Open StatLab   All guide topics