Template for Empirical Papers

This folder provides an all-encompassing working structure for empirical papers. It organizes every step of the process: merging and cleaning (several) data sets, performing analyses (tables, figures, regressions), writing the article itself and also presentations.

  • Customize to fit your project.
  • Particularly useful for work involving multiple coauthors and RAs.
  • Principles: functional folder structure, modularity and automation.
  • Read the README file for more information.
  • Continuously under improvement. Suggestions are welcome, please just email me.


Cleaning the Relação Anual de Informações Sociais (RAIS) dataset in Stata, 1985-2018

This repository provides code and tips to clean the Brazilian matched employer-employee dataset.

  • Read the README file for more information.


Philosophy

Some writing on science, epistemology and randomness.

  • The Belief Cloud: Framework and Applications [pdf]

    This essay introduces the concept of a belief cloud as a representation of belief structure over claims humans can make. It divides claims into facts, and those others that are still open for debate. The cloud represents the current state of our knowledge, and it also helps visualizing how it grows. Based on this framework, I discuss various applications in communication, policy making, business, and science.

  • On Randomness and Probability [pdf]

    This essay provides coherent definitions of two bedrock concepts in philosophy and statistics: randomness and probability. When constructing the first, I define repeatability, the measurement set, and distinguish between frequency vs. value prediction. The definition of randomness proposed, namely of a random variable not being perfectly value-predictable for any given information set, is stronger than those commonly used in the literature. Second, after defining probability as a theory about a variable's potential frequency distribution, I argue that the dichotomy between frequentist and bayesian interpretations is illusory. I conclude with remarks about knowledge and determinism.

  • Is Economics a Science? Not Yet. [pdf] [SSRN]

    Is economics a science? Answering this question is not only necessary for philosophical clarity, but also crucial for knowing how seriously to take economists’ claims and advice about public policy. Nevertheless, even among practitioners and academics, consensus is nonexistent. This paper resolves the conundrum in two steps. First I discuss some epistemology of science, defining clearly various concepts necessary to the debate. Several fallacies are clarified, such as "a theory may never be proved true, but only not falsified", "a model is useful because it simplifies reality" or "data mining is bad". In light of solid philosophical ground, I then discuss the practice and methodology of modern economics. The answer to the title question is a perhaps disappointing, but realistic, not yet. I conclude with prescriptions for a path towards a more scientific discipline.


Op-Eds, Press, and Podcasts


Ice Cream Map

Mapping and reviewing ice cream spots worldwide, one at a time.

Money can’t buy happinness. But it can buy ice cream, which is almost the same thing.