Site icon R-bloggers

RTutor: How would Carbon Pricing Affect US Electricity Production?

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

One way by which carbon pricing can reduce CO2 emmissions is by shifting electricity production from coal power plants to natural gas plants. A combined cycle gas turbine emits roughly only half as much CO2 per MWh produced electricity than a coal power plant. (Unfortunately, a substantial part of those benefits may be negated unless methane leakage in natural gas production is sufficiently curbed, see e.g. here.)

But predicting how exactly carbon pricing would shift US electricity production is not straightfoward, since the usage of coal and gas plants depends on a lot of factors like e.g. congestion of electricity networks.

In their article Inferring Carbon Abatement Costs in Electricity Markets: A Revealed Preference Approach Using the Shale Revolution (AEJ Economic Policy, 2017) Joseph Cullen and Erin Mansur use the large variation in historical natural gas prices as part of the shale gas revolution to predict the effects of carbon pricing.

As part of his Bachelor Thesis at Ulm University, Daniel Dreyer has generated a nice RTutor problem set that allows you to replicate the findings in an interactive fashion. You will learn in detail the ideas and concrete steps necessary to come up with predictions like in this ggplot graph:


Like in 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 proceed. In addition you are challenged by many multiple choice quizzes.

You can test the problem set online on shinyapps.io: https://danieldreyer.shinyapps.io/RTutorCO2ReductionCosts/

The free shinyapps.io account is capped at 25 hours total usage time per month. So it may be greyed out when you click at it.

To locally install the problem set, follow the installation guide at the problem set’s Github repository: https://github.com/danieldreyer/RTutorCO2ReductionCosts

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

https://skranz.github.io/RTutor/

or at the Github page

https://github.com/skranz/RTutor

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.