Getting Started with LRST
A practical introduction to the Longitudinal Rank-Sum Test: what question it answers, how to shape the data, how to run the R package, and how to interpret the output.
What question does LRST answer?
LRST is a global test
It asks whether one group tends to perform better overall across multiple longitudinal outcomes and follow-up visits.
It is not an endpoint-specific model
It does not replace a model designed to estimate one particular mean difference, one specific time-point contrast, or an individual trajectory.
If your scientific question is about the overall multivariate longitudinal profile, LRST is a natural choice. If you want a visual explanation first, see the companion research note.
Install the package from GitHub
The current package documentation uses the GitHub version directly.
LRST expects longitudinal arrays
For the documented two-arm workflow, provide one array for the placebo group and one array for the treatment group.
lrst.2arm() implementation treats the first time point as baseline and constructs the test from the follow-up visits.The basic two-arm analysis
The function takes the two arrays directly. No extra wrapper is required.
How should you read the result?
If the global p-value is small
There is evidence of an overall difference between groups across the multivariate longitudinal profile.
Then go back to the science
Inspect individual outcomes and visits to understand where the signal is coming from and whether it is clinically meaningful.
Estimate power from the two arrays
The documented function returns estimated power at the chosen significance level using the observed placebo and treatment arrays.
Extend the workflow beyond two groups
For multiple treatment arms, keep the placebo array separate and provide the treatment arms as a list.
The current function returns p, the selected arm index v, and the final statistic T.
Things to check before trusting the output
Go deeper
Use the visual research note for intuition, the GitHub repository for software, and the publication page for the methodological papers.