Linear regression: a worked dose–response example

Regression answers a different question from group comparisons: not “do these groups differ?” but “how does the outcome change as a continuous input changes?” The fitted slope is the scientific quantity itself — response per unit dose.

The data

A dose–response run, one measurement per dose:

Dose (mg/L)Response
02.1
59.8
1018.7
2039.5
4081.2
80158.9

Two-column x–y layout, one row per observation — as in MinutePlot’s regression grid.

The fit

Least squares gives slope = 1.98 ± 0.02 per mg/L (t = 94.5, p < 0.001) with an intercept of 0.43 that does not differ from zero (p = 0.62) — sensible, since zero dose should give a near-zero response. The line explains essentially all the variation (R² = 0.9996): each mg/L of dose adds almost exactly two units of response across the tested range.

Scatter plot
with fitted regression line and equation

MinutePlot’s regression panel: data, fitted line, equation and R² — ready for the figure legend.

Report it like this

“Response increased linearly with dose (slope = 1.98 ± 0.02 units per mg/L, t = 94.5, p < 0.001, R² = 0.9996).”

When a straight line is the wrong model

Always look at the residuals: curvature means a polynomial or dose–response model fits better; both are one click away in the same panel. And R² near 1 with visibly curved data is a warning, not a success — the number summarises fit, the plot tells the truth. Extrapolating beyond the tested dose range is the other classic error: the line is evidence only where there is data.

Try it yourself — in a minute. Paste the table above into MinutePlot, press Confirm and Analyze, and you will get this exact analysis and a publication-ready figure with the letters placed for you. Open MinutePlot in your browser — free 14-day trial, no card needed.
References
  1. Montgomery, D. C. (2017). Design and Analysis of Experiments (9th ed.). John Wiley & Sons.