Toolkit

2025-09-11

Housekeeping

  • A few more homework problems released today. Yesterday and today’s problems are due to Gradescope by Monday 11:59pm

  • Office hours + Q-Center TA hours reminder!

Agenda

  • Reproducible data analysis

  • Toolkit

    • R and RStudio (Posit)

    • Quarto markdown

  • Practice!

Reproducibility

  • Allows your code execution or an experiment to be repeated by another person

  • Goals:

    • Are the tables and figures generated directly from the code?

    • Does the code actually do what you think it does?

    • Can your code be used for other data/analyses?

Toolkit

  • We will use the programming language R to write code

  • How will interact with the R code? In the integrated development environment called RStudio. Helps us be more productive with R

    • R is like a car engine, and RStudio is like a car’s dashboard
  • We will liberate our programming by keeping code, narrative, and output all in the same interface using Quarto Markdown documents

Quarto Markdown

  • Allows us to create fully reproducible reports

  • Can code in code chunks and type regular text/narrative outside of these chunks

  • How will we use Quarto Markdown?

    • You coding practice problems and some problems on your weekly assignments will be assigned as a Quarto Markdown document (.qmd)

    • You will almost always be provided with a template .qmd to start with (the exception being the end of the semester when you’ve mastered this material!)

RStudio

To open RStudio, simply double click on the RStudio icon (you do not need to click on the R icon)

Make a folder

Create a new folder on your Desktop that is named STAT 201.

  • All of your files for this course should go into this folder!!!!