In this repository you will find the data set and corresponding R code to replicate the analysis of João Cancela, António Dias, and Marco Lisi (2016): "The impact of endorsements in intra-party elections: evidence from open primaries in a new Portuguese party", published in Politics. The article is available at http://doi.org/10.1177/0263395716680125 Any queries regarding the code should be directed to: antoniolvdias@gmail.com