Model fitting and diagnostics

How models are fitted and checked in a statistical package.

1What it covers

How models are fitted and checked in a statistical package. The topic covers the procedures for regression, classification and survival models, the options that matter, the diagnostics for fit and for broken assumptions, the comparison of models, and the check against a second method. It starts with a model-ready file and ends with a fitted model and diagnostics that show whether to trust it.

2Why it matters

A package will fit a model to almost any data, so the diagnostics decide whether the result is sound. Default options may not fit the data. A second method is the cheapest check on a result.

3The skill it belongs to

4Roles that use it

Updated 5 Nov 2026