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

mixedpower: A new program for calculating power and sample size for longitudinal mixed models

Author

Listed:
  • Matthew Burnell

    (University College London)

Abstract

Power and sample-size calculations for clinical trials with longitudinal continuous outcome measures are typically performed using simulation, with a perception that analytic solutions are either complex or intractable. However, there is a straightforward general approach using matrix algebra that is perhaps not widely appreciated and has been under-utilized. A new community-contributed command, mixedpower, instantaneously performs these calculations for two-level mixed models, allowing for a wide variety of treatment-effect specifications and covariance structures, including “marginal” models where the within-subject error terms are correlated across time. The command can also estimate the impact on power and resulting bias from incorrectly assuming a specific treatment effect, such as a proportionate slope change. Other essential requirements of a realistic trial, such as dropout, staggered recruitment, and unequal allocation ratios are also readily incorporated. A key feature is the ability to enter variance parameters either manually or automatically, extracted from a fitted model in memory, saving both time and potential mistakes. Other companion programs are introduced such as mvmixedpower for multivariate mixed models when there is more than one outcome, and trial counts, which helps the user easily specify plausible levels of data missingness due to partial follow-up and dropout.

Suggested Citation

  • Matthew Burnell, "undated". "mixedpower: A new program for calculating power and sample size for longitudinal mixed models," UK Stata Conference 2026 17, Stata Users Group.
  • Handle: RePEc:boc:lsug26:17
    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:17. 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.