RTutor: Technological Progress and Fuel Economy of Cars

April 15, 2016
By

(This article was first published on Economics and R - R posts, and kindly contributed to R-bloggers)

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:

https://github.com/MariusBreitmayer/RTutorAttributeTradeOffs

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.)

https://mariusbreitmayer.shinyapps.io/RTutorAttributeTradeOffs

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

https://github.com/skranz/RTutor

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 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...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Sponsors

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)