R for Stata Users: A Short Course

An 8-Hour Livestream Seminar Taught by Andrew Miles, Ph.D.

Download Sample Course Slides

R is a free and open-source package for statistical analysis that is widely used in the social, health, physical, and computational sciences. While many excellent analysis packages exist, researchers gravitate to R because it is powerful, flexible, has excellent graphics capabilities, and is supported by a large and rapidly growing community of users.

This course is designed to help Stata users transition to R by understanding how to perform familiar data analysis tasks in R. Topics include data management and coding, exploratory data visualizations, and performing basic descriptive, bivariate, and multivariate analyses. Along the way, we will pay special attention to the differences between Stata and R such as terminology, code syntax, data handling, and default procedures.

Starting May 29, we are offering this seminar as an 8-hour synchronous*, livestream workshop held via the free video-conferencing software Zoom. Each day will consist of two 2-hour lecture sessions which include hands-on exercises, separated by a 30-minute break. You are encouraged to join the lecture live, but will have the opportunity to view the recorded session later in the day if you are unable to attend at the scheduled time.

*We understand that finding time to participate in livestream courses can be difficult. If you prefer, you may take all or part of the course asynchronously. The video recordings will be made available within 24 hours of each session and will be accessible for four weeks after the seminar, meaning that you will get all of the class content and discussions even if you cannot participate synchronously. 

Closed captioning is available for all live and recorded sessions. Captions can be translated to a variety of languages including Spanish, Korean, and Italian. For more information, click here.

More Details About the Course Content

This course is more than just a how-to guide for translating Stata code to R. While these kinds of translations can be helpful, the end goal is to help you become fluent in R. Thus, an important theme will be helping you understand the fundamentals of how R “thinks” so that you can begin to use R independently.

This course is thoroughly hands-on. You are encouraged to write code along with the instructor and to participate in the carefully designed exercises that will be interspersed throughout the seminar and assigned as “take-home” practice after the first class session. By the end of the course, you can expect to log more than six hours of guided practice coding in R.

Computing

To participate in the hands-on exercises, you are strongly encouraged to use a computer with the most recent version of R installed. You are also encouraged to download and install RStudio, a front-end for R that makes it easier to work with. This software is free and available for Windows, Mac, and Linux platforms.

Who Should Register?

This course is for Stata users who want to seamlessly transition to R. You should have prior experience with basic data management, bivariate statistics, and linear regression.

Outline

Introduction: R basics

Data basics

  • Importing and exporting (Stata) data
  • Basic R data structures and Stata equivalents
  • How R and Stata manage data sets
  • Viewing vs. modifying data in R and Stata
  • Missing data

Recoding data

  • Logical operators in R and Stata
  • Common data recoding tasks

Essential R skills

  • Understanding R’s functions and help files
  • Writing understandable R code

Exploring data

  • Descriptive statistics
  • Exploratory data plots

Classic tests

  • T-test
  • Chi-squared test
  • Storing and accessing test results in R and Stata

Linear models

  • Fitting linear models
  • Specifying common Stata options in R
  • Post-estimation (time permitting)
    • Detecting and correcting problems
    • Model predictions

Reviews of R for Stata Users

“I liked that the course referred back to my familiarity with Stata, but not overly so, and really focused on getting into the new software and doing some actual coding. It was exactly the gentle, stress-free start I needed to feel more confident, and less anxious, about learning and building my skills in R.”
  Angela Kemple, Washington State Department of Health

“The course starts you off slow and simple. This was the first time I could follow along with anything R after I was taught only Stata in my graduate program and told to go learn R on my own if I wanted to. I thought I might be somehow not tech-savvy enough for R when I tried to pick it up on my own. I no longer feel as though I am not cut out for R! I am actually ready to learn on my own now.”
  John Pippen, University of North Texas

“It was shorter than most SH courses and focused on applied issues with little theoretical background. It was well-organized. The instructor was pleasant, engaged, and effective – he did a great job. This would be a difficult course to teach, considering people’s questions about individual circumstances, technical challenges, etc., but Andrew did well juggling these issues. The course resources are really excellent. I took this course so as to leverage my existing knowledge of Stata and not have to learn R from scratch.”
  Jeff Hebert, University of New Brunswick

“In general, the pace and the pedagogical approach were very well chosen. More specifically, the instructor was very good at answering questions from the audience and using the chat function in an efficient manner to make it useful for everyone and not waste time. Not least, it was fun with Andrew!”
  Gunther Bensch, RWI – Leibniz-Institute for Economic Research

“I liked the instructor’s easy-going demeanor and his willingness to address students’ problems. I also liked his attitude that you need to familiarize yourself with R by coding in R.”
  John Fieno, Department of Health & Senior Services, State of Missouri

“I like the step-by-step approach, which made it clear what R programs to use that were comparable to common Stata commands when accessing, cleaning, and analyzing data.”
  Philip Ituarte, City of Hope National Medical Center

“This course was the right level for me – I have some modest experience in R but much more in Stata – so this helped me become more familiar with R. Two days was perfect for my time availability as well. The contextualization relative to Stata was very helpful.”
  Darren Courtney, Centre for Addiction and Mental Health

Seminar Information

Thursday, May 29-
Friday, May 30, 2025

Schedule: All sessions are held live via Zoom. All times are ET (New York time).

10:30am-12:30pm (convert to your local time)
1:00pm-3:00pm

Payment Information

The fee of $695 includes all course materials.

PayPal and all major credit cards are accepted.

Our Tax ID number is 26-4576270.