# Manipulation of Intensive Longitudinal Data: A Tutorial in R With Applications on the Job Demand‐Control Model

**Authors:** Luca Menghini, Enrico Perinelli, Cristian Balducci

PMC · DOI: 10.1002/ijop.70040 · International Journal of Psychology · 2025-03-23

## TL;DR

This paper provides a tutorial in R for handling intensive longitudinal data in psychology, focusing on data manipulation steps and an example using the job demand-control model.

## Contribution

The paper introduces an open-source R tutorial for ILD data manipulation, including psychometric and preprocessing steps, to support applied psychology research.

## Key findings

- The tutorial includes data reading, merging, cleaning, and psychometric procedures for ILD.
- An example application supports the strain and partially the buffer hypotheses of the job demand-control model.
- The tutorial aims to reduce methodological barriers in handling ILD data for researchers and practitioners.

## Abstract

Intensive longitudinal designs (ILD) are increasingly used in applied psychology to investigate research questions and deliver interventions at both within‐ and between‐individual levels. However, while relatively complex analyses such as cross‐level interaction models are trending in the field, little guidance has been provided on ILD data manipulation, including all procedures to be applied to the raw data points for getting the final dataset to be analysed. Here, we provide an introductory step‐by‐step tutorial and open‐source R code on required and recommended data pre‐processing (e.g., data reading, merging and cleaning), psychometric (e.g., level‐specific reliability), and other ILD data manipulation procedures (e.g., data centering, lagging and leading). We built our tutorial on an illustrative example aimed at testing the job demand‐control model at the within‐individual level based on data from 211 back‐office workers who received up to 18 surveys over three workdays, supporting both the strain and (partially) the buffer hypotheses. Being the common starting point of many types of analyses, data manipulation is crucial to determine the quality and validity of the resulting study outcomes. Hence, this tutorial and the attached code aim to contribute to removing methodological barriers among applied psychology researchers and practitioners in the handling of ILD data.

## Full-text entities

- **Diseases:** bullying (MESH:D000073397), JDC (MESH:D007589), ILD (MESH:C000657744), post-traumatic stress symptoms (MESH:D013313)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC11930784/full.md

## Figures

2 figures with captions in the complete paper: https://tomesphere.com/paper/PMC11930784/full.md

## References

30 references — full list in the complete paper: https://tomesphere.com/paper/PMC11930784/full.md

---
Source: https://tomesphere.com/paper/PMC11930784