IDEAS home Printed from https://ideas.repec.org/p/boc/lsug23/16.html
   My bibliography  Save this paper

How to check a simulation study

Author

Listed:
  • Ian R White

    (MRC Clinical Trials Unit at UCL, London, UK)

  • Tra My Pham

    (MRC Clinical Trials Unit at UCL, London, UK)

  • Matteo Quartagno

    (MRC Clinical Trials Unit at UCL, London, UK)

  • Tim P Morris

    (MRC Clinical Trials Unit at UCL, London, UK)

Abstract

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 analysed. 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.

Suggested Citation

  • Ian R White & Tra My Pham & Matteo Quartagno & Tim P Morris, 2023. "How to check a simulation study," UK Stata Conference 2023 16, Stata Users Group.
  • Handle: RePEc:boc:lsug23:16
    as

    Download full text from publisher

    File URL: http://repec.org/lsug2023/Stata_UK23_Pham.pptx
    Download Restriction: no
    ---><---

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:lsug23:16. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/stataea.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.