Power and Sample Size for Longitudinal Models in R – The longpower Package and Shiny App

Longitudinal studies are ubiquitous in medical and clinical research. Sample size computations are critical to ensure that these studies are sufficiently powered to provide reliable and valid inferences. There are several methodologies for calculating sample sizes for longitudinal studies that depend on many considerations including the study design features, outcome type and distribution, and proposed analytical methods. We briefly review the literature and describe sample size formulas for continuous longitudinal data. We then apply the methods using example studies comparing treatment versus control groups in randomized trials assessing treatment effect on clinical outcomes. We also introduce a Shiny app that we developed to assist researchers with obtaining required sample sizes for longitudinal studies by allowing users to enter required pilot estimates. For Alzheimer’s studies, the app can estimate required pilot parameters using data from the Alzheimer’s Disease Neuroimaging Initiative (ADNI). Illustrative examples are used to demonstrate how the package and app can be used to generate sample size and power curves. The package and app are designed to help researchers easily assess the operating characteristics of study designs for Alzheimer’s clinical trials and other research studies with longitudinal continuous outcomes. Data used in preparation of this article were obtained from the Alzheimer’s Disease Neuroimaging Initiative (ADNI) database (adni.loni.usc.edu).

Samuel Iddi (Department of Statistics and Actuarial Science) , Michael C Donohue (Alzheimer’s Therapeutic Research Institute)
2022-07-04

Supplementary materials

Supplementary materials are available in addition to this article. It can be downloaded at RJ-2022-022.zip

References

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Iddi & Donohue, "The R Journal: Power and Sample Size for Longitudinal Models in R -- The longpower Package and Shiny App", The R Journal, 2022

BibTeX citation

@article{RJ-2022-022,
  author = {Iddi, Samuel and Donohue, Michael C},
  title = {The R Journal: Power and Sample Size for Longitudinal Models in R -- The longpower Package and Shiny App},
  journal = {The R Journal},
  year = {2022},
  note = {https://doi.org/10.32614/RJ-2022-022},
  doi = {10.32614/RJ-2022-022},
  volume = {14},
  issue = {1},
  issn = {2073-4859},
  pages = {264-282}
}