fit models

Whatever statistical model we fit, we progress through a workflow that can be remembered by knowing that model fitting is E.V.I.L.:

  1. [E]{.pkg}valuate the model
  2. [V]{.pkg}isualise the data/hypotheses
  3. [I]{.pkg}nterpret the model
  4. [L]{.pkg}oad the data and [L]{.pkg}ook at descriptive summaries

We can can use a consistent set of steps and r rproj() functions as highlighted in Figure 2, although the order of steps is a bit more fluid than this list implies. For example, [V]{.alt}isualise is often done after [E]{.alt}valuating the model.

A flowchart illustrating the 5 steps described in the text.
Figure 2: Workflow for fitting statistical models.


Try the discovr package in your browser

Any scripts or data that you put into this service are public.

discovr documentation built on Feb. 5, 2026, 5:07 p.m.