This is the GitHub hosting the code and resources for the SISMID 2024 Intro to R Module.
This module introduces the R statistical environment, assuming no prior knowledge. It provides a foundation for the use of R for computation in later modules. In addition to discussing basic data management tasks in R, such as reading in data and producing summaries through R scripts, we will also introduce R’s graphics functions, its powerful package system, and simple methods of looping.
Hands-on use of R is a major component of this module; users require a laptop and will use it in all sessions. Examples and exercises will use data drawn from biological and medical applications, including infectious diseases and genetics. Participants require a laptop and will use it in all sessions. Suggested pairing: All later modules.
This module assumes prior knowledge of basic descriptive statistics and regression modeling consistent with an introductory statistical course.
Before starting the course, students should install the newest version of R (here) and RStudio (here).
- Write and use R script.
- Create and use R projects and R Markdown files.
- Read and write data files
- Install and load R packages, and be able to access the help system and other resources to facilitate their use.
- Learn base R syntax
- Perform basic data manipulations (e.g. working with different data types, creating new variables, merging data sets).
- Use R to perform descriptive statistics including graphics.
- Perform basic inferential statistical analyses including regression analysis.
- Write and use R functions, and perform basic programming in R including loops.
README.qmd
: controls what shows up here on the GitHub page.index.qmd
: this is the website homepage.schedule.qmd
: info on the course schedule and logisticsreferences.qmd
: any references for the course go in the .bib file and get rendered on this page.data
directory: contains datasets used in the course and exercisesexercises
: contains R or Rmd files for each of the exercisesformat
: contains code to format the website appearanceimages
: put static image files heremodules
: all of the modules go here. Each module gets its own folder with anindex.qmd
page that holds the web page content and a separate document for the slides.- Everything else is housekeeping files needed for the website.
The instructors for this course are Amy Winter and Zane Billings.
If you see any issues, please open an Issue or Discussion on the book’s GitHub page. Or, if you know Git, you can open a Pull Request to fix the issue directly, which is even better!
- Thanks to Callum Arnold for publishing the source code for a 2023 SISMID module which was the basis for this website!
This
work is licensed under a
Creative
Commons Attribution-NonCommercial 4.0 International License.