Selected Projects

In this paper we analyze the implementation of a public health treaty by national governments using a diffusion of innovations perspective. The central thesis of this article is that national policy implementation is in part a function of the implementation activities of other nations the focal nation is connected to. The treaty studied here is the Framework Convention on Tobacco Control (FCTC).

In this paper we use a probabilistic evolutionary model built upon phylogenetic trees and experimental evidence of gene functional annotations to predict whether or not unannotated genes have a particular function.

This study analyzes the relationship between TV rating and Twitter’s tweeting during the Teleton 2012, an event that is transmitted by all Chilean channels simultaneously. The results suggest a statistically positive impact of television rating on Twitter’s tweeting.

El objetivo de este nota es el de ilustrar, por medio de simulaciones, los posibles efectos sobre las pensiones que obtendrán los trabajadores chilenos adscritos al sistema de capitalización individual, en caso de elevarse la tasa de cotización obligatoria.
Centro de Politicas Laborales, Chile

Recent Publications

  • Network Influences on Policy Implementation: Evidence from a Global Health Treaty


  • On the Automatic Annotation of Gene Functions Using Observational Data and Phylogenetic Trees

    Details Code

  • The Impact of TV Rating on Twitter's Activity: Evidence for Chile Based on the Teleton 2012

    Details PDF

  • El Impacto de un Alza en la Cotización Previsional: Pensiones, Salarios y Empleo

    Details Link

Recent & Upcoming Talks

More Talks

Recent Posts

More Posts

Sparse matrices in RcppArmadillo can be a very useful resource to work with, especially when you are dealing with social networks. Here I provide a couple of examples in which we can take advantage of their structure by using iterators.


During the last year I’ve been working on a daily basis with phylogenetic trees, objects that in graph jargon are called Directed Acyclic Graphs. While R does have some cool packages out there to visualize these–including phylocanvas which looks great!–I wanted to tryout jsPhyloSVG, and moreover, to learn how to use htmlwidgets. So, after a week-long process of playing with JavaScript, of which I had no prior knowledge (so thank you W3shools)!


So one of the new features that I’ve working on is processing viz attributes. In the CRAN version of rgexf, the function read.gexf only reads in non-visual attributes and the graph structure itself, which is no longer true as of today (at least for the static viz attributes, all the other dynamic features supported by GEXF will come in the future). We start by loading the R packages and reading the “lesmiserables.


Since there are plenty of examples out there telling you how to get started with shiny (like Rstudio’s, or Google), I will focus on telling some of the stuff that I did learned and may not be obvious at first, including some of the mistakes I made. Before start, I just want to stress that I’m writing this after my first shiny app, you’ve been warned! Here it goes: Use the “two-file” method Instead of putting everything, UI and Server, in a single app.


Finally, after a long wait, the R packages googlePublicData (more than 2 years since the last update!) and ABCoptim (roughly a year since the last update) have new versions on CRAN.



PARALLEL: Stata module for parallel computing

Parallel lets you run Stata faster, sometimes faster than MP itself. By organizing your job in several Stata instances, parallel allows you to work with out-of-the-box parallel computing.

aphylo: Statistical Inference of Annotated Phylogenetic Trees

The aphylo R package implements a phylogenetic model for gene functional prediction that I have been developing as part of my doctoral disertation.

netdiffuseR: Analysis of Diffusion and Contagion Processes on Networks

Empirical statistical analysis, visualization and simulation of diffusion and contagion processes on networks.