Back

Presentation

How to check a simulation study

Tra My Pham

8 September 2023

Session

Simulation studies are a powerful tool in 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 where answers are already known. Code should be written in stages, and data-generating mechanisms should be checked before simulated data are analyzed. Results should be explored carefully, with scatterplots of standard error estimates against point estimates a surprisingly powerful tool. When estimation fails or there are outlying estimates, these should be identified, understood, 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. We illustrate the ideas with a simple but realistic simulation study in Stata.

Speaker

Tra My Pham