Fitting longitudinal partial credit models and accounting for lack of measurement invariance using generalized structural equation modeling in Stata
Stata offers a wide range of item response theory models, allowing users to fit multigroup models and even test for differential item functioning (DIF) in cross-sectional studies. However, there is no built-in command to estimate longitudinal item response theory or Rasch models or to explicitly account for a lack of measurement invariance, namely, DIF and response shift. In this article, we show how to fit a longitudinal partial credit model using Stata’s generalized structural equation modeling framework. The proposed longitudinal partial credit model includes a group covariate and a continuous time-related covariate that explain the latent variable. It can also jointly model noninvariance of the measurement model across groups (DIF) and over time (response shift). We illustrate the methodology using data from a clinical study aimed at describing the trajectory of anxiety symptoms among patients on the waiting list for kidney transplantation. We provide both the code and the example dataset to enable readers to apply the statistical method presented in this article.
Authors
- Bastien Perrot (ORCID: https://orcid.org/0000-0002-3701-6693)
- Myriam Blanchin (ORCID: https://orcid.org/0000-0003-1318-7620)
- Véronique Sebille (ORCID: https://orcid.org/0000-0002-0780-7742)
Institutions
- Université de Tours (FR)
- Inserm (FR)
- Centre Hospitalier Universitaire de Tours (FR)
- methodS in Patient-centered outcomes and HEalth ResEarch (FR)
- Nantes Université (FR)
Publication Details
- Journal
- The Stata Journal Promoting communications on statistics and Stata
- Published
- 2026-11-30
- DOI
- https://doi.org/10.1177/1536867x261508242
- Citations
- 2
- Primary Topic
- Psychometric Methodologies and Testing
- Type
- article
- Field-Weighted Citation Impact
- 4.21
Funders
- Agence Nationale de la Recherche