Instructor Notes
When it comes to terminology, I often refer to variables with unordered values as “qualitative,” although many sources instead prefer the terms “categorical” or “nominal” to refer to this variable type. You may want to flag this for students if my terminology doesn’t match what you normally use.
Sample course outline
I’ve constructed this outline to span 10 weeks, since a typical 15 week course on introductory statistics may reserve some weeks for exams or other content.
Week 1: Getting Started (R Companion Guide Part 1)
Depending on what kind of setup you have for running your software (e.g., in a virtual desktop environment), students may struggle to figure out how to transfer graphs into Word or whatever format you use for student submissions. You may want to walk students through how to do this. You might also want to show students what it means to have a clean script file that will execute in full. If you want to pair this lesson with a reading that goes a bit more in-depth, consider the first chapter of ModernDive: https://moderndive.com/v2/01-getting-started.html
Week 2: Description, File Types (R Companion Guide Part 2)
Especially relevant to this chapter, many students struggle with basic file management. You might want to spend some time showing them what it looks like to have a good folder structure for data work (e.g., using the cloud file storage system provided by your school).
Note that setting the working directory (through point-and-click) is much simpler in RStudio than Positron, so if you’re teaching in RStudio, you may want to demo setting the working directory in class.
As an alternative to using the psych package for descriptive statistics, you might consider skimr: https://docs.ropensci.org/skimr/
Week 3: Transformations, Associations (R Companion Guide Part 3)
I designed the “Put it into Practice” assignment with the intention that students would get some practice with executing transformations and regressions in software The actual transformations and regression they perform may not be very useful/informative. Still, this exercise can set the scene for a follow-up discussion in class (e.g., comparing regression results from standardized vs. unstandardized variables).
Week 4: Working with Qualitative Variables (R Companion Guide Part 4)
Note that if you are comparing to the Stata Companion Guide, the division of topics between parts 4 and 5 differs (whereas they tracked closely for Parts 1-3).
Part 4 starts to introduce some ideas that will require a lot more study to really master. The first section introduces ggplot2, but the grammar of graphics is not really explained because I consider it too complicated for a lesson at this stage. So you may want to emphasize to students that they don’t need to follow the reasoning for all of this code to still make use of it. You might take this opportunity to discuss more generally the process of trying to adapt code chunks you find (e.g., through Google) to your particular project/situation.
In the second section of Part 4, I introduce creating summary tables with the tidyverse, but I also don’t really expect students to be able to generate code like this themselves yet.
Week 5: Data Management and Qualitative Dependent Variables (R Companion Guide Part 5)
The main theme of Part 5 is data management, but that is such a big topic that this coverage is in no way comprehensive. It does fill in several more functions/examples for data manipulation that students may need for simple data projects. Currently, I have not split this up across three pages, but there are three distinct videos that effectively separate the Part 5 model script content into three sections.
If you want to go deeper on this topic, the third chapter of ModernDive may be helpful: https://moderndive.com/v2/03-wrangling.html
Week 6: More Data Visualization (Grammar of Graphics)
The ordering of topics does not follow any particular logic for the five final weeks, so this can be moved around. One potential topic is a more systematic coverage of creating graphs with ggplot2. ModernDive has a chapter that may be written at a good level for true intro students: https://moderndive.com/v2/02-visualization.html
Week 7: Making Nice Tables
There are several packages to choose from, but one option that is relatively friendly for beginner R users is modelsummary: https://modelsummary.com/
Week 8: R4DS as a Reference Tool
You can assign sections from R4DS that are particularly relevant to whatever you are emphasizing in your class, while more generally discussing how to use the book as a reference tool (e.g., typing a function into the search bar).
Week 9: More on regression output
Regression output and (robust) standard error options: https://evalf21.classes.andrewheiss.com/example/standard-errors/ (if that link ever dies, use the Internet Archive version)
Coefficient plots: https://modelsummary.com/vignettes/modelplot.html
Week 10: Plotting Predicted Values from Regression
Perhaps the easiest way to get started: https://strengejacke.github.io/sjPlot/articles/plot_marginal_effects.html
An alternative (focused on interactions): https://stats.oarc.ucla.edu/r/seminars/interactions-r/