added citation for mahbub:2013
more r code