Related Experiment Video
Updated: Jan 29, 2026

A Practical Guide to Phylogenetics for Nonexperts
Published on: February 5, 2014
How to Deal With Temporal Relationships Between Biopsychosocial Variables: A Practical Guide to Time Series Analysis
Tatjana Stadnitski1, Beate Wild
1From the Department of Psychological Research Methods (Stadnitski), University Ulm, Germany; and Department of General Internal Medicine and Psychosomatics (Wild), Medical University Hospital, Heidelberg, Germany.
Objective:
Longitudinal data allow for conclusions about the temporal order of events and interactional dynamics between several processes. The aim of this article is to provide a concise and pragmatic description of time series analyses (TSAs) of patient samples with numerous (or daily) repeated biological, behavioral, or psychological measurements. In addition, the article demonstrates how to implement the described analyses with the software R.
Methods:
To illustrate the concrete application of the time series method, we use two case series of patients with anorexia nervosa. Upon awakening, the patients collected salivary cortisol on a daily basis and answered several questions on a handheld computer (electronic diary) regarding psychosocial variables at the time of salivary collection.
Results:
Basic concepts of time series analysis such as stationarity, auto- and cross-correlation, Granger causality, impulse response function, and variance decomposition are presented. In addition, we demonstrate vector autoregressive analyses with three variables. For Patient 1, we demonstrate how TSA is used to detect cortisol and anxiety decreases during inpatient treatment and also how TSA can be used to show that an increase in cortisol is followed by a next-day increase in anxiety. For Patient 2, TSA was used to show higher salivary cortisol upon awakening on the days the patient was weighed compared with other days. In addition, we show how interdependencies of depressive feelings, positive anticipations, and cortisol values can be quantified using TSA.
Conclusions:
Time series designs enable modeling of temporal relationships and bidirectional associations between biopsychosocial variables within individuals. These individual patterns cannot be derived from traditional group-based statistical analyses. This article provides accessible research tools for conducting TSA relevant to psychosomatic and biobehavioral research.
Related Concept Videos
Time-Series Graph
Variability: Analysis
The range is a simple measure of variability, indicating the difference between the highest and...
Discrete-Time Fourier Series
For a discrete-time periodic signal x[n]...
Relationship Formation
Ending Relationships
Random Variables
Uppercase letters such as X or Y denote a random variable. Lowercase letters like x or y denote the value of a random variable. If X is a random variable, then X is written in words, and x is given as a number.
For example, let X = the...

