March 2025 Statistics Training: Starkville & Oxford, MS

UPDATE Monday, March 3: Due to travel cancellation, all lessons and talks will be delivered virtually via MS Teams and will be open to all personnel at both the Oxford and Starkville locations.

Pre-workshop instructions

You have two options for following along with the code in the workshop.

Option 1: I have created a project on Posit Cloud. You can run the R code on the cloud server without installing anything on your own computer. All you have to do is sign up for a Posit Cloud account (already paid for by the Area Office), join the project group, and create your own copy of the project template. Participants will receive an invitation link by email. Instructions for signing up for an account and joining the project are here.

The Posit Cloud server is only for demonstration and teaching purposes. It is not secure. NO GOVERNMENT-OWNED DATA MAY BE UPLOADED TO THIS SERVER.

Option 2: Install R, RStudio, and all necessary R packages on your own computer. For Day 2 (omics), there is an additional step to install a Python virtual environment on your computer so that you can call Python code to do certain omics analyses from within R, using this omics workshop setup script. We may not have time during the workshop to troubleshoot any installation issues that may arise. However, if you want to analyze your own data with the methods you learn in the workshop, you will eventually need to install this software locally or run it on the SciNet cluster. Instructions on how to install R, RStudio, and the needed R packages on your own computer are here.

Workshop agenda and materials

All necessary data and code worksheets are already pre-loaded on Posit Cloud. I have posted all materials here as well, in case people want to access them after the workshop when the Posit Cloud workspace is no longer available. You will need to bring your laptops to participate in hands-on sessions.

Day 1: (Tuesday, March 4)

Day 1 Agenda

  • 9:00 AM - 10:15 AM: Hands-on session: R for SAS Users Lesson 1
  • 10:00 AM - 10:30 AM: Break
  • 10:30 AM - 12:00 PM: Hands-on session: R for SAS Users Lesson 2
  • 12:00 PM - 1:30 PM: Lunch
  • 1:30 AM - 3:00 PM: Hands on session: R for SAS Users Lesson 3

Day 1 Materials

The hands-on lessons being taught on Day 1 are part of the “R for SAS Users” lesson series I developed. But it is not necessary to know any SAS to benefit from this lesson. All R code in these lessons is presented alongside equivalent SAS code so that if you’re already familiar with how to do something in SAS, you can see how to accomplish that same goal in R.

Full-text version Slides R Code Worksheet SAS Code from Lesson Answers to Exercises
Lesson 1: Basic R for SAS users Slides Worksheet / Worksheet filled in Lesson SAS code file Answers
Lesson 2: Intro to Mixed Models in R for SAS users Slides Worksheet / Worksheet filled in Lesson SAS code file Answers
Lesson 3: My first GLMMs in R for SAS users Slides Worksheet / Worksheet filled in Lesson SAS code file Answers

All data and worksheets are pre-loaded onto the Posit Cloud server, but if you are working with your own local version of R you might need to download the data using the link below.

Day 2: (Wednesday, March 5)

Day 2 Agenda

Day 2 Materials

Note that the two stats talks are not hands-on workshops and you will not need to bring your laptop for them. But the power analysis workshop will be hands-on and you will need your laptop. Here are the materials for the power analysis workshop.

As before, all data and worksheets are already pre-loaded onto the Posit Cloud server. Here is a link to the example dataset file if you need it.

Day 3: (Thursday, March 6)

Day 3 Agenda

  • 9:00 AM - 10:00 AM: Hands-on session: introduction to machine learning
  • 10:00 AM - 10:15 AM: Break
  • 10:15 AM - 11:15 AM: Hands-on session: introduction to machine learning, continued
  • 11:15 AM - 12:00 PM: Open Q-and-A/discussion

Day 3 materials

As before, all data and worksheets are already pre-loaded onto the Posit Cloud server. Here are links to the example dataset files if you need them.

Post-workshop survey

Please help me improve future trainings by taking a quick (<5 minute) survey telling me what you thought about the workshops and talks!

MS Forms feedback survey

Page last updated 2025-03-03