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.R
reproduces the simulations for the "drastic, convex transformation" and createsdoc/figs/fig1-intuition.pdf
anddoc/figs/fig2-intuition-sims.pdf
(thefig*
numbers correspond to the figure numbers in the paper).R/holland.R
reproduces the re-analysis of Holland (2015) and createsdoc/figs/fig3-holland.pdf
anddoc/tabs/tab1-top-5.tex
. The fileholland-medians.csv
contains 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.
make
ormake all
makes the entire project (simulations, data analysis, manuscript, and appendix).make paper
makes the manuscript and appendix.
make cleanALL
deletes all files created by scripts.make cleanpaper
deletes the.pdf
versions of the manuscript and appendix.
The figure below shows the dependencies.