Subscribe to the BITSS Blog

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,757 other subscribers

Email Address

Get Email Updates from BITSS

First Name

Last Name

Email

Leave this field empty if you're human:

R for Stata Users

February 10, 2017

Garret Christensen —BITSS Project Scientist

For whatever reason, economists use a lot of Stata. It does what we want to do (data cleaning, regression analysis, data visualization) well, and the $1,000 fees we pay every other version or so doesn’t seem to have stopped its widespread adoption. But is that changing, and are people switching to R and/or Python? I have no good data on the question, but it does seem obvious that if you’re teaching students who won’t be going to grad school in economics, requiring them to use Stata instead of R is pointlessly harmful to their job prospects in the tech sector.

Second, the dynamic documents and reproducible workflow capabilities of R Markdown and knitr, and version control, which are all built right into R Studio, blow anything I’ve seen in Stata out of the water. (Link to what I’ve seen in Stata.)

Third, it’s nice to be able to have more than one dataset in memory at the same time. And lot of other things like that.

With that in mind, I’m looking around for resources designed to help Stata users learn R. If I get time I’d like to develop a Software Carpentry-style lesson for it. The resources I’ve found so far are:

2 thoughts on “R for Stata Users”

For me, creating the code to run a regression or two in R is like Chinese and Stata is like German. For me, the second is difficult and the first really really difficult. I prefer just to tell Alexa what I want and I look forward to the time that she will understand my command to “run a regression of US GDP growth on the lagged and twice lagged growth of US housing starts!” The future is normal language with well-designed interaction with our AI assistants. R and Chinese are for those who already speak those languages, not for me. Eviews is closer to Alexa but not very close. Let’s all move into the Future together!