A one-day course in using Stata and R together: running twice in 2018

[This article was first published on R – Dataviz – Stats – Bayes, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

I am going to be giving this course on 10 August and 6 December this year. It is organised by Timberlake Consultants, the distributors of Stata for UK and Ireland, and will take place at Cass Business School’s excellent facilities in the City of London.Cassbuilding

I am excited to offer this new course because I think there is a real gap in the market here. Lots of people want to tap into both Stata as a commercial package with a lot of well-constructed and thoroughly tested tools for analysis and graphics, as well as R as a flexible, analysis-oriented programming language. Obviously you could run a bit of code here and a bit there and keep notes as to what you did (and heaven knows we’ve all been there), but it is safer, faster and more reproducible to integrate your workflow across both Stata and R. I’ll show you some ways of doing that and you’ll leave with some useful Stata commands and R functions that you can start using straight away.

Because of the many different ways in which you might have these two pieces of software set up on your computers, this needs to be a face-to-face course (for now at least; maybe we’ll be able to offer it online from next year).

And if you’re wondering why anyone would want to use both, here’s some pros and cons. Stata has an imperative scripting language (with macro substitution) that does a lot more than you probably think it does. R is a functional, highly vectorised programming language. What is hard in one is often quite easy in the other.

Some R advantages:

  • faster graphics
  • sometimes more flexible graphics
  • have more than one data file open, plus various arrays
  • lists of diverse object types
  • useR communities + a lot of Stack Overflow vel sim
  • functional programming can be handy…
  • magrittr piping
  • Rcpp integartion with C++
  • packages for hip stuff like Spark, H2O.ai, Keras etc etc…
  • rmarkdown, knitr etc for outputs
  • bespoke parallelisation


Stata advantages:

  • simpler to bootstrap most estimation and modelling methods
  • simpler multiple imputation
  • imperative programming with macro substitution can be handy
  • most models are achieved with less typing
  • customer support + Statalist
  • Mata, and Java/C/C++ plugins
  • lots of economics/econometrics functionality
  • neat structural equation model building
  • webdoc, dyndoc etc for outputs
  • built-in parallelisation (if you have MP flavor)
  • super-clean SVG output
  • margins and marginsplot are really good for communicating findings

You can read more and book here.

To leave a comment for the author, please follow the link and comment on their blog: R – Dataviz – Stats – Bayes.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)