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

Samuel Iddi1, Michael C Donohue2

  • 1Department of Statistics and Actuarial Science, University of Ghana, Legon-Accra, Ghana also Data Measurement and Evaluation Unit, African Population and Health Research Center (APHRC), Nairobi, Kenya.

The R Journal
|January 19, 2026
PubMed
Summary

Calculating sample sizes for longitudinal studies is crucial for reliable medical research. This study provides formulas and a user-friendly app to aid researchers in determining appropriate sample sizes for continuous longitudinal data, including Alzheimer's clinical trials.

Related Concept Videos

Longitudinal Research02:20

Longitudinal Research

Sometimes we want to see how people change over time, as in studies of human development and lifespan. When we test the same group of individuals repeatedly over an extended period of time, we are conducting longitudinal research. Longitudinal research is a research design in which data-gathering is administered repeatedly over an extended period of time. For example, we may survey a group of individuals about their dietary habits at age 20, retest them a decade later at age 30, and then again...
13.1K
Sample Size Calculation01:19

Sample Size Calculation

Knowledge of the sample size is the first requirement to conduct random sampling or an experiment. The sample size is the total number of units, observations, or groups (in some cases) used to get the data to estimate a population parameter. As the name suggests, the sample size is that of the sample drawn from the population and differs from the population size.
The sample size for the given experiment or sampling effort is fundamental to any study design. Sample size decides the number of...
6.4K
One-Way ANOVA: Equal Sample Sizes01:15

One-Way ANOVA: Equal Sample Sizes

One-Way ANOVA can be performed on three or more samples with equal or unequal sample sizes. When one-way ANOVA is performed on two datasets with samples of equal sizes, it can be easily observed that the computed F statistic is highly sensitive to the sample mean.
Different sample means can result in different values for the variance estimate: variance between samples. This is because the variance between samples is calculated as the product of the sample size and the variance between the...
4.0K
One-Way ANOVA: Unequal Sample Sizes01:15

One-Way ANOVA: Unequal Sample Sizes

One-way ANOVA can be performed on three or more samples of unequal sizes. However, calculations get complicated when sample sizes are not always the same. So, while performing ANOVA with unequal samples size, the following equation is used:
6.6K
Using an Automated Hirschberg Test App to Evaluate Ocular Alignment05:40

Using an Automated Hirschberg Test App to Evaluate Ocular Alignment

We present a protocol of using a smartphone app to perform Hirschberg test for measuring manifest and intermittent ocular misalignment (strabismus) under near and far fixation...
15.7K
DNA Packaging00:58

DNA Packaging

Overview
112.1K