<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/rtutor-the-effect-of-air-pollution-on-house-prices/"></div></div><div><a data-url="https://www.r-bloggers.com/rtutor-the-effect-of-air-pollution-on-house-prices/" data-counturl="https://www.r-bloggers.com/rtutor-the-effect-of-air-pollution-on-house-prices/" data-count="horizontal" data-text="RTutor: The effect of air pollution on house prices" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://feedproxy.google.com/~r/skranz_R/~3/0MKpx_riytw/RTutorAirPollution.html"> Economics and R - R posts</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>A key question of environmental economics is to economically quantify damages from different types of pollution and benefits from environmental policy that attempts to reduce pollution. Often only indirect measures are available. An important measure is house prices, which should to some extend reflect negative externalities from local pollution.</p>
<p>In their article <a target="_blank" href="http://www.mitpressjournals.org/doi/abs/10.1162/REST_a_00493#.V_xdZPl9603">Who Benefits from Environmental Regulation? Evidence from the Clean Air Act Amendments</a> (Review of Econonomics and Statistics, 2015) Antonio Bento, Matthew Freedman and Corey Long study a comprehensive regionally dissaggregated data set that contains data about air pollution (PM 10 concentration) in 1990 and 2000 for many monitoring stations around the United States. In addition they collected data on real estate prices, distance to the monitoring stations and demographic compositions of almost 2000 localities in the neighbourhood of these stations. They exploit the fact that the clear air act ammendents require active policy measures to reduce air pollution if measured pollution at the monitoring stations exceed some threshold, in order to estimate the effects of clean up measures on house prices. They find that especially houses in lowly priced localities have benefited from these clean up measures.</p>
<p>As part of his Master Thesis at Ulm University, Moritz Sporer has created an interactive RTutor problem set. It allows you to explore the data set and the studied questions in an interactive fashion and learn more about R at the same time. Even though there may be some rough edges, it allows you to dive nicely into the topic. For example, there is a very nice exposition of the non trivial issue of measuring causal effects and the differences between OLS and IV estimates in this study.</p>
<p>Screenshoot:</p>
<hr>
<p><img alt="Screenshot missing" src="https://i2.wp.com/feedproxy.google.com/~r/skranz_R/~3/0MKpx_riytw/images/AirPollutionOLS.PNG?w=456" data-recalc-dims="1"></p>
<hr>
<p>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 procceed.</p>
<p>To install the problem set the problem set locally, first install RTutor as explained here:<br>
<a target="_blank" href="https://github.com/skranz/RTutor">https://github.com/skranz/RTutor</a></p>
<p>and then install the problem set package:</p>
<p><a target="_blank" href="https://github.com/msporer/RTutorEnvironmentalRegulation">https://github.com/msporer/RTutorEnvironmentalRegulation</a></p>
<p>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.)</p>
<p><a target="_blank" href="https://msporer.shinyapps.io/RTutorEnvironmentalRegulations/">https://msporer.shinyapps.io/RTutorEnvironmentalRegulations/</a></p>
<p>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</p>
<p><a target="_blank" href="https://github.com/skranz/RTutor">https://github.com/skranz/RTutor</a></p>
<p><img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/skranz_R/~4/0MKpx_riytw"></p>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="https://www.r-bloggers.com/rtutor-the-effect-of-air-pollution-on-house-prices/"></div></div><div><a data-url="https://www.r-bloggers.com/rtutor-the-effect-of-air-pollution-on-house-prices/" data-counturl="https://www.r-bloggers.com/rtutor-the-effect-of-air-pollution-on-house-prices/" data-count="vertical" data-text="RTutor: The effect of air pollution on house prices" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://feedproxy.google.com/~r/skranz_R/~3/0MKpx_riytw/RTutorAirPollution.html"> Economics and R - R posts</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/VcFMW8B9yRw"></a></div>