The Regressinator: A Simulation Tool for Teaching Regression Assumptions and Diagnostics in R

When students learn linear regression, they must learn to use diagnostics to check and improve their models. Model-building is an expert skill requiring the interpretation of diagnostic plots, an understanding of model assumptions, the selection of appropriate changes to remedy problems, and an intu...

Full description

Saved in:
Bibliographic Details
Published inJournal of statistics and data science education pp. 1 - 13
Main Author Reinhart, Alex
Format Journal Article
LanguageEnglish
Published Taylor & Francis Group 06.08.2025
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:When students learn linear regression, they must learn to use diagnostics to check and improve their models. Model-building is an expert skill requiring the interpretation of diagnostic plots, an understanding of model assumptions, the selection of appropriate changes to remedy problems, and an intuition for how potential problems may affect results. Simulation offers opportunities to practice these skills, and is already widely used to teach important concepts in sampling, probability, and statistical inference. Visual inference, which uses simulation, has also recently been applied to regression instruction. This article presents the regressinator, an R package designed to facilitate simulation and visual inference in regression settings. Simulated regression problems can be easily defined with minimal programming, using the same modeling and plotting code students may already learn. The simulated data can then be used for model diagnostics, visual inference, and other activities, with the package providing functions to facilitate common tasks with a minimum of programming. Example activities covering model diagnostics, statistical power, and model selection are shown for both advanced undergraduate and Ph.D.-level regression courses.
ISSN:2693-9169
2693-9169
DOI:10.1080/26939169.2025.2520202