Blog Archives

Positive coefficient regression in R

August 5, 2011
By
Positive coefficient regression in R

Ever have a regression model where the coefficients don't make sense? I've been trying to predict electricity and gas consumption from daily activity schedules but a simple linear regression kept saying that demands should go down the more an activity is performed. Fortunately I found the nnls package and show here how you can use it to...

Read more »

Slopegraphs in R

July 16, 2011
By
Slopegraphs in R

The internet seems abuzz this week with the "discovery" of a long-lost Edward Tufte plot type: the slopegraph. In this post, I'll show you how to create these elegant compact plots using R and ggplot2.

Read more »

How to do a quantitative literature review in R

May 17, 2011
By
How to do a quantitative literature review in R

In the early stages of a literature review, you may have hundreds of papers and not know how to even begin sorting through them. In this post, I show you how to perform a two-stage clustering analysis with R so that you can identify the main groups within your data, based on key attributes of each paper.

Read more »

How to: Multinomial regression models in R

April 5, 2011
By
How to: Multinomial regression models in R

Apples, oranges, pears or bananas? Bus, train, car, or walk? Many choices are made between more than two options, a situation that can be represented by multinomial choice modelling. Here's a quick tutorial on how to do it in R.

Read more »

How to: Binomial regression models in R

March 19, 2011
By
How to: Binomial regression models in R

Ever wondered how to predict success or failure as a function of other variables? Here's a quick tutorial on binomial regression in R.

Read more »

Changing the fonts in R plots

October 28, 2007
By
Changing the fonts in R plots

Tweet I use R to do almost all of my statistical analysis and plotting. It has a very steep learning curve but once you get into it, it’s very powerful and you can customise almost anything. The only problem is that these changes are not...

Read more »