This repository contains the manuscript and code for paper "A Careful Consideration of CLARIFY: Simulation-Induced Bias in Point Estimates of Quantities of Interest."
Some work in political methodology recommends that applied researchers obtain point estimates of quantities of interest by simulating model coefficients, transforming these simulated coefficients into simulated quantities of interest, and then averaging the simulated quantities of interest (e.g., CLARIFY). But other work advises applied researchers to directly transform coefficient estimates to estimate quantities of interest. I point out that these two approaches are not interchangeable and examine their properties. I show that the simulation approach compounds the transformation-induced bias identified by Rainey (2017), adding bias with direction and magnitude similar to the transformation-induced bias. I refer to this easily-avoided additional bias as "simulation-induced bias." Even if researchers use simulation to estimate standard errors, they should directly transform maximum likelihood estimates of coefficient estimates to obtain point estimates of quantities of interest.
This project is simple, so it is easy to reproduce the analyses by running two R scripts individually.
R/intuition-sims.Rreproduces the simulations for the "drastic, convex transformation" and createsdoc/figs/fig1-intuition.pdfanddoc/figs/fig2-intuition-sims.pdf(thefig*numbers correspond to the figure numbers in the paper).R/holland.Rreproduces the re-analysis of Holland (2015) and createsdoc/figs/fig3-holland.pdfanddoc/tabs/tab1-top-5.tex. The fileholland-medians.csvcontains the median shrinkage in Bogota, Lima, Santiago reported in the text.
You can run the two R scripts with the source() commands below.
source("R/intuition-sims.R")
source("R/holland.R"")
To reproduce this work, simply run the command make in a terminal. This reproduces all computations and compiles the manuscript and appendix. It takes about three minutes to run on my desktop.
makeormake allmakes the entire project (simulations, data analysis, manuscript, and appendix).make papermakes the manuscript and appendix.
make cleanALLdeletes all files created by scripts.make cleanpaperdeletes the.pdfversions of the manuscript and appendix.
The figure below shows the dependencies.
