Papers › Teaching modeling in introductory statistics: A comparison of formula and tidyverse syntaxes

Teaching modeling in introductory statistics: A comparison of formula and tidyverse syntaxes

31 Jan 2022arXiv:2201.12960links table onlyarchive 2025-07-28

Amelia McNamara

The archive published only this paper's code-link row. Authors, date and abstract are from arXiv's metadata (CC0), read from the Kaggle arXiv metadata snapshot of 2026-09-12 where its title matched the archive's; the title is the archive's.

There are many pedagogical considerations for incorporating programming into a statistics course. When using the programming language R, one consideration is the particular R syntax that will be used. This paper reports on a head-to-head comparison run in a pair of introductory statistics labs, one conducted fully in the formula syntax, the other in tidyverse. Analysis of pre- and post-survey data show minimal differences between the two labs, with students reporting a positive experience regardless of section. Analysis of data from YouTube and RStudio Cloud show interesting distinctions. The formula section appeared to watch a larger proportion of pre-lab YouTube videos, but spend less time computing on RStudio Cloud. Conversely, the tidyverse section watched a smaller proportion of the videos and spent more time computing. Analysis of lab materials showed tidyverse labs tended to be slightly longer in terms of lines in the provided RMarkdown materials and minutes of the associated YouTube videos. The tidyverse labs exposed students to more distinct R functions, but reused functions more frequently. Both labs relied on a relatively small vocabulary of consistent functions, which can provide a starting point for instructors interested in teaching introductory statistics in R. The instructor experience of teaching in the two syntaxes diverged primarily when discussing relationships between categorical variables, as well as when working with summary statistics for numeric variables. This work provides additional evidence for instructors looking to choose between syntaxes for introductory statistics teaching.

PaperPDFCode

Code

ameliamn/comparingsyntaxformodeling officialmentioned in papermentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections