Here are some codes (or part of them) that I've used in my research. Some of them were made in the very early stages of my research career, so please forgive all redundancies. If you find any mistake or a better way of running those codes, please let me know.
The codes listed below are those already requested by a ton of people, but I've never had them at my fingertips. I'll be posting other codes as long as someone requests them. If you need something that is not listed, send me a message.
Please cite the articles that originally used each code!
Duryea, Ribas, Sampaio, and Trevisan, "The Impact of Admission to a Selective College on Crime: Evidence from a Tuition-Free University in Brazil," Journal of Labor Economics, forthcoming.
Ribas, Sampaio, and Trevisan, "The Impact of Peer Performance and Relative Rank on Managerial Career Attainment: Evidence from College Students," Management Science, 2025, 71 (5): 3641-4531.
Original papers (please cite them when using the package):
Ribas, Sampaio, and Trevisan, "Short- and long-term effects of class assignment: Evidence from a flagship university in Brazil," Labour Economics, 2020, 64 (101835). (CRDD)
Giambona and Ribas, "Unveiling the Price of Obscenity: Evidence from Closing Prostitution Windows in Amsterdam," Journal of Policy Analysis and Management, 2023, 42 (3): 677-705. (MDRD, DiD, CRDD)
Giambona and Ribas, "The external cost of prostitution: Evidence from shutting down red light districts in the Netherlands," Real Estate Economics, 2023, 51 (3): 630-654. (DiS)
Matta, Ribas, Sampaio, and Sampaio, "The effect of age at school entry on college admission and earnings: a regression-discontinuity approach," IZA Journal of Labor Economics, 2016, 5 (9): 1-25. (RDD with sample weighting)
Ribas, "Multidimensional Regression Discontinuity and Regression Kink Designs with Difference-in-Differences," 2016 Stata Conference, Stata Users Group.
Campello, Ribas, and Wang, "Is the Stock Market Just a Side-Show? Evidence from a Structural Reform," Review of Corporate Finance Studies, 2014, 3 (1-2): 1-38.
Do file. Original paper:
Campello, Ribas, and Wang, "Is the Stock Market Just a Side-Show? Evidence from a Structural Reform," Review of Corporate Finance Studies, 2014, 3 (1-2): 1-38.
Ribas and Soares, "Sobre o Painel da Pesquisa Mensal de Emprego-PME do IBGE: problemas e soluções para o emparelhamento usando microdados," Revista Brasileira de Estatística, 2009, 70 (233): 75-108.
Ribas and Soares, "Sobre o Painel da Pesquisa Mensal de Emprego-PME do IBGE: problemas e soluções para o emparelhamento usando microdados," Revista Brasileira de Estatística, 2009, 70 (233): 75-108.
Ribas and Machado, "A imputação da renda do não trabalho na Pesquisa Mensal de Emprego," Pesquisa e Planejamento Econômico, 2009, 39 (3): 365-396.
On grouped data, Ribas, Machado, and Golgher,"Distinguishing Chronic Poverty from Transient Poverty in Brazil: Developing a Model for Pseudo-Panel Data," Pesquisa e Planejamento Econômico, 2011, 41 (2): 287-336.
On sample selection (panel attrition), Ribas and Soares,"O atrito nas pesquisas longitudinais: o caso da Pesquisa Mensal de Emprego (PME/IBGE)," Estudos Econômicos, 2010, 40 (1): 213-244.