IDEAS home Printed from https://ideas.repec.org/a/tsj/stataj/v21y2021i3p575-601.html
   My bibliography  Save this article

Power and sample-size calculations for trials that compare slopes over time: Introducing the slopepower command

Author

Listed:
  • Stephen Nash

    (London School of Hygiene and Tropical Medicine)

  • Katy E. Morgan

    (London School of Hygiene and Tropical Medicine)

  • Chris Frost

    (London School of Hygiene and Tropical Medicine)

  • Amy Mulick

    (London School of Hygiene and Tropical Medicine)

Abstract

Trials of interventions that aim to slow disease progression may analyze a continuous outcome by comparing its change over time—its slope—between the treated and the untreated group using a linear mixed model. To perform a sample-size calculation for such a trial, one must have estimates of the parameters that govern the between- and within-subject variability in the outcome, which are often unknown. The algebra needed for the sample-size calculation can also be complex for such trial designs. We have written a new user-friendly command, slopepower, that performs sample-size or power calculations for trials that com- pare slope outcomes. The package is based on linear mixed-model methodology, described for this setting by Frost, Kenward, and Fox (2008, Statistics in Medicine 27: 3717–3731). In the first stage of this approach, slopepower obtains estimates of mean slopes together with variances and covariances from a linear mixed model fit to previously collected user-supplied data. In the second stage, these estimates are combined with user input about the target effectiveness of the treatment and design of the future trial to give an estimate of either a sample size or a statistical power. In this article, we present the slopepower command, briefly explain the methodology behind it, and demonstrate how it can be used to help plan a trial and compare the sample sizes needed for different trial designs.

Suggested Citation

  • Stephen Nash & Katy E. Morgan & Chris Frost & Amy Mulick, 2021. "Power and sample-size calculations for trials that compare slopes over time: Introducing the slopepower command," Stata Journal, StataCorp LP, vol. 21(3), pages 575-601, September.
  • Handle: RePEc:tsj:stataj:v:21:y:2021:i:3:p:575-601
    DOI: 10.1177/1536867X211045512
    Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj21-3/st0647/
    as

    Download full text from publisher

    File URL: http://www.stata-journal.com/article.html?article=st0647
    File Function: link to article purchase
    Download Restriction: no

    File URL: https://libkey.io/10.1177/1536867X211045512?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    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:tsj:stataj:v:21:y:2021:i:3:p:575-601. 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 or Lisa Gilmore (email available below). General contact details of provider: http://www.stata-journal.com/ .

    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.