How to check a simulation study

Int J Epidemiol. 2024 Feb 1;53(1):dyad134. doi: 10.1093/ije/dyad134.

Abstract

Simulation studies are powerful tools in epidemiology and biostatistics, but they can be hard to conduct successfully. Sometimes unexpected results are obtained. We offer advice on how to check a simulation study when this occurs, and how to design and conduct the study to give results that are easier to check. Simulation studies should be designed to include some settings in which answers are already known. They should be coded in stages, with data-generating mechanisms checked before simulated data are analysed. Results should be explored carefully, with scatterplots of standard error estimates against point estimates surprisingly powerful tools. Failed estimation and outlying estimates should be identified and dealt with by changing data-generating mechanisms or coding realistic hybrid analysis procedures. Finally, we give a series of ideas that have been useful to us in the past for checking unexpected results. Following our advice may help to prevent errors and to improve the quality of published simulation studies.

Keywords: Monte Carlo; Simulation studies; avoiding errors; graphics for simulation.

MeSH terms

  • Biostatistics*
  • Computer Simulation
  • Humans
  • Monte Carlo Method