IDEAS home Printed from https://ideas.repec.org/p/boc/lsug26/14.html

A flexible Monte Carlo quantitative bias analysis for unmeasured confounding: The qbaconfound command

Author

Listed:
  • Rachael Hughes

    (University of Bristol)

  • Emily Kawabata

    (University of Bristol)

  • Chin Yang Shapland

    (University of Bristol)

  • Tom Palmer

    (University of Bristol)

  • David Carslake

    (University of Bristol)

  • Kate Tilling

    (University of Bristol)

Abstract

Unmeasured confounding is a persistent concern in observational studies. We can quantitatively assess the impact of unmeasured confounding using a quantitative bias analysis (QBA). A probabilistic QBA incorporates external information about the unmeasured confounders via prior distributions for certain parameters (known as bias parameters) that specify the relationship between the unmeasured confounders and the study data. It can be implemented as a Bayesian or Monte Carlo QBA. A Bayesian QBA combines the prior distribution with the data's likelihood function, while a Monte Carlo QBA samples the bias parameters directly from its prior distributions. Software implementations of probabilistic QBAs to unmeasured confounding are scarce and mainly limited to unadjusted analyses of binary variables. We present a new Stata command, qbaconfound, that implements our flexible Monte Carlo QBA. It is applicable to a generalized linear model or survival proportional hazards model and allows for (i) binary, continuous, or categorical exposure and measured confounders; (ii) correlation between; and (iii) one or multiple binary or continuous. To minimize the number of bias parameters, our proposed Monte Carlo QBA does not model directly but instead models the part not explained. (For more information, see Kawabata et. al preprint https://doi.org/10.1101/2025.08.12.25333217.) We illustrate qbaconfound with an example analysis from the National Health and Nutrition Examination Survey study.

Suggested Citation

  • Rachael Hughes & Emily Kawabata & Chin Yang Shapland & Tom Palmer & David Carslake & Kate Tilling, "undated". "A flexible Monte Carlo quantitative bias analysis for unmeasured confounding: The qbaconfound command," UK Stata Conference 2026 14, Stata Users Group.
  • Handle: RePEc:boc:lsug26:14
    as

    Download full text from publisher

    To our knowledge, this item is not available for download. To find whether it is available, there are three options:
    1. Check below whether another version of this item is available online.
    2. Check on the provider's web page whether it is in fact available.
    3. Perform a
    for a similarly titled item that would be available.

    More about this item

    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:lsug26:14. 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.