Using Stata and R together

By Robert

(This article was first published on R – Dataviz – Stats – Bayes, and kindly contributed to R-bloggers)

I’m running a one day course with Timberlake, Stata’s UK distributors on this topic. We’ll run it next Friday the 9th of March and again later in the year (10 Aug, 6 Dec), each time at Cass Business School in the City of London. If you use one of these, and have at least had a quick look at the other, then this course is for you. I won’t introduce the software from scratch — installation etc — but I assume you are comfortable working in one of them. We’ll use RStudio as an IDE but you can apply what you learn in any R GUI, or none.

The learning outcomes are:

  • understand the differences between a functional language and an imperative language
  • know several strengths and weaknesses of both Stata and R
  • be able to include chunks of R code inside a Stata do file and have them run from Stata
  • be able to include chunks of Stata code inside an R script and have them run from R
  • understand the limitations of passing data back and forth between Stata and R, and how to spot problems

If you want to know more, you can email me or get in touch on Twitter. If you want to book a place or ask about practicalities, travel etc, check out the Timberlake page.

To leave a comment for the author, please follow the link and comment on their blog: R – Dataviz – Stats – Bayes. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more…

Source:: R News

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.