Blog Archives

Why use RTutor for interactive tutorials if there is RStudio’s learnr?

April 29, 2019
By
Why use RTutor for interactive tutorials if there is RStudio’s learnr?

There are nowadays different options to create interactive R tutorials that allow users to type in code, automatically check their solution and get hints if they are stuck. Two options are RStudio’s learnr package and my RTutor package. Obviously, ...

Read more »

An Interesting Subtlety of Statistics: The Hot Hand Fallacy Fallacy

March 13, 2019
By
An Interesting Subtlety of Statistics: The Hot Hand Fallacy Fallacy

Last week I stumbled across a very interesting recent Econometrica article by Joshua Miller and Adam Sanjuro. I was really surprised by the statistical result they discovered and guess the issue may even have fooled Nobel Prize winning behavioral economists. Before showing the statistical subtlety, let me briefly explain the Hot Hand Fallacy. Consider a basketball player who makes 30...

Read more »

Finding Economic Articles With Data

February 22, 2019
By
Finding Economic Articles With Data

In my view, one of the greatest developments during the last decade in economics is that the Journals of the American Economic Association and some other leading journals require authors to upload the replication code and data sets of accepted articles. I wrote a Shiny app that allows to search currently among more than 3000 articles that have an accessible...

Read more »

Finding Economic Articles With Data

February 20, 2019
By
Finding Economic Articles With Data

In my view, one of the greatest developments during the last decade in economics is that the Journals of the American Economic Association and some other leading journals require authors to upload the replication code and data sets of accepted articles. I wrote a Shiny app that allows to search currently among more than 3000 articles that have an accessible...

Read more »

RTutor: Better Incentive Contracts For Road Construction

December 13, 2018
By
RTutor: Better Incentive Contracts For Road Construction

Since about two weeks, I face a large additional traffic jam every morning due to a construction site on the road. When passing the construction site, often only few people or sometimes nobody seems to be working there. Being an economist, I really won...

Read more »

RTutor: Driving Electric or Gasoline Cars? Comparing the Pollution Damages

November 21, 2018
By
RTutor: Driving Electric or Gasoline Cars? Comparing the Pollution Damages

How does driving an electric car compare to driving a similar gasoline car in terms of total pollution damages? While some comments about the future of mobility may suggest that electric cars are already clearly much more environmental friendly, the an...

Read more »

About a Curious Feature and Interpretation of Linear Regressions

October 29, 2018
By
About a Curious Feature and Interpretation of Linear Regressions

A small blog post with a riddle, simulation, theory and a concluding rhyme. Consider a fictitious example in which we have collected a sample of somewhat overweight persons for which we measured weight in kg as $y$ and height in cm as $x$. We estimate the following simple linear regression: One early message in our Economics 101 course is that for...

Read more »

Interactive RTutor Problemsets via RStudio Cloud

Interactive RTutor Problemsets via RStudio Cloud

I just learned about RStudio Cloud (see https://rstudio.cloud/) that allows to simply run RStudio instances from your browser. Moreover, you can simply set-up RStudio projects that other users can simply copy and use themselves. RStudio Cloud is still in alpha and currently one can freely register to use it. I have set up a project that allows you to simply...

Read more »

P-Values, Sample Size and Data Mining

P-Values, Sample Size and Data Mining

Recently, a paper was presented at our university that showed a significant effect for a variable of interest but had a relatively small number of observations. One colleague suggested that we should consider the significance of the results with care since the number of observations was fairly small. This ignited some discussion. Given that the significance test computed exact p-values,...

Read more »

Data on energy consumption and CO2 emissions

Data on energy consumption and CO2 emissions

I like to start my courses in energy economics and environmental economics by asking some question like Which energy source, e.g. gas, coal, nuclear, oil, renewables had the largest absolute increase in world wide energy consumption between the years 2000 und 2016? And then show some data. Below you can see an updated version of a googleVis visualization of...

Read more »

Search R-bloggers

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)