Publications by diffuseprior

Visualizing Euro 2012 with ggplot2

09.06.2012

After scanning this paper by Zeileis, Leitner & Hornik, I thought it would be interesting to see how the victory odds for each team changes as Euro 2012 progresses. To do this, I am going to collect the daily inverse odds of a tournament victory offered by a popular betting site for each team. Here is the first plot. Day one corresponds to the p...

962 sym 18 img

Visualizing Euro 2012: First Group Games

12.06.2012

Now that every team has played a match it will be interesting to see how this has affected the (inverse) odds of victory. Since the plot in my last post was a bit ‘busy’, I have decided to use the facet_wrap function in gglplot2 to stratify by group. Also, re-producing the ‘busy’ plot from the last post yields the following. Germany, de...

1022 sym R (1390 sym/1 pcs) 20 img

Standard, Robust, and Clustered Standard Errors Computed in R

15.06.2012

Where do these come from? Since most statistical packages calculate these estimates automatically, it is not unreasonable to think that many researchers using applied econometrics are unfamiliar with the exact details of their computation. For the purposes of illustration, I am going to estimate different standard errors from a basic linear regre...

3222 sym R (4717 sym/5 pcs) 36 img

Euro2012 Viz: Second Group Games

16.06.2012

The second round of group games ended last night (sadly with Sweden’s elimination). Here is what the last number of days has done to the plots. Related To leave a comment for the author, please follow the link and comment on their blog: DiffusePrioR » R. R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R...

553 sym 20 img

Euro 2012: End of Group Stage

20.06.2012

Time for an update of the plots. Here are the teams still left in the competition. This is the group stratification. Finally, the busy plot. Related To leave a comment for the author, please follow the link and comment on their blog: DiffusePrioR » R. R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R an...

551 sym 22 img

Euro 2012: Day 18

25.06.2012

As promised. Looks like a Spain Germany final. Related To leave a comment for the author, please follow the link and comment on their blog: DiffusePrioR » R. 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 ...

456 sym 20 img

How to Convert Rugby into Football/Soccer Scores

26.06.2012

Following the Irish rugby team’s humiliating 60-0 defeat to New Zealand, an interesting question was posed on Twitter: what does a 60-0 result convert to in football/soccer? Intrigued, I decided to gather some data from both the English premier league (this season, more data collected and future blog posts to come!) and the equivalent English l...

2241 sym R (3378 sym/1 pcs) 18 img

Combining ggplot Images

03.07.2012

The ggplot2 package provides an excellent platform for data visualization. One (minor) drawback of this package is that combining ggplot images into one plot, like the par() function does for regular plots, is not a straightforward procedure. Fortunately, R user Stephen Turner has kindly provided a function called “arrange” that does exactly ...

843 sym R (972 sym/1 pcs) 4 img

Probit Models with Endogeneity

15.08.2012

Dealing with endogeneity in a binary dependent variable model requires more consideration than the simpler continuous dependent variable case. For some, the best approach to this problem is to use the same methodology used in the continuous case, i.e. 2 stage least squares. Thus, the equation of interest becomes a linear probability model (LPM). ...

3374 sym R (1732 sym/1 pcs) 34 img

BMR: Bayesian Macroeconometrics in R

04.09.2012

The recently released BMR package, short for Bayesian Macroeconometrics with R, provides a comprehensive set of powerful routines that estimate Bayesian Vector Autoregression (VAR) and Dynamic Stochastic General Equilibrium (DSGE) models in R. The procedure of estimating both Bayesian VAR and DSGE models can represent a great computational burden...

1204 sym 4 img