RTutor: Technological Progress and Fuel Economy of Cars

[This article was first published on Economics and R - R posts, 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.

Christopher Knittel estimates in his article

Automobiles on Steroids: Product Attribute Trade-Offs and Technological Progress in the Automobile Sector (American Economic Review, 2011)

the technological progress that has occurred since 1980 in the automobile industry and the trade-offs faced when choosing between fuel economy, weight, and engine power characteristics. The estimation is performed without using any cost data or engineering models but it uses only observed characteristics from a large sample of car models.

As part of his Bachelor thesis at Ulm University, Marius Breitmayer has created an interactive RTutor problem set that allows you to replicate large parts of the analysis in R. The results show how considerable progress has taken place but has only to a small part been directed into a better fuel economy. Like previous RTutor problem sets, you can enter free R code in a web based shiny app. The code will be automatically checked and you can get hints how to procceed. (Note that while there are many very nice parts in the problem set, in some parts the econometric exposition may not always be as clear as it could be.)

Here is a screenshoot:

Screenshot missing

To install the problem set locally, follow the instructions here:


There is also an online version hosted by shinyapps.io that allows you explore the problem set without any local installation. (The online version is capped at 30 hours total usage time per month. So it may be greyed out when you click at it.)


If you want to learn more about RTutor, to try out other problem sets, or to create a problem set yourself, take a look at the RTutor Github page


Note: The name RTutor has become quite attractive, which may lead to some confusion. So here is a short list of projects that share the basic name but vary on its spelling:

  • I guess first was the website with information about R http://www.r-tutor.com/.
  • Then I put my package RTutor on Github and regularly announce new problem sets on R-bloggers.
  • Recently, the package RtutoR has been put on CRAN and also been announced on R-bloggers.

All are very nice projects, but rather unrelated.

To leave a comment for the author, please follow the link and comment on their blog: Economics and R - R posts.

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)