Modeling truncated and censored data with the diffusion model in Stan

Reaction time data in psychology are frequently censored or truncated. For example, two-alternative forced-choice tasks that are implemented with a response window or response deadline give rise to censored or truncated data. This must be accounted for in the data analysis, as important characteristics of the data, such as the mean, standard deviation, skewness, and correlations, can be strongly affected by censoring or truncation. In this paper, we use the probabilistic programming language Stan to analyze such data with Bayesian diffusion models. For this purpose, we added the functionality to model truncated and censored data with the diffusion model by adding the cumulative distribution function for reaction times generated from the diffusion model and its complement to the source code of Stan. We describe the usage of the truncated and censored models in Stan, test their performance in recovery and simulation-based calibration, and reanalyze existing datasets with the new method. The results of the recovery studies are satisfactory in terms of correlations ( <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>r</mml:mi> <mml:mo>=</mml:mo> <mml:mo>.</mml:mo> <mml:mn>93</mml:mn> <mml:mo>-</mml:mo> <mml:mn>1.00</mml:mn></mml:mrow> </mml:math> ), coverage (93-95% of true values lie in the 95% highest density interval), and bias. Simulation-based calibration studies suggest that the new functionality is implemented without errors. The reanalysis of existing datasets further validates the new method.

Authors

Institutions

Publication Details

Journal
Behavior Research Methods
Published
2026-01-20
DOI
https://doi.org/10.3758/s13428-025-02822-z
Primary Topic
Mental Health Research Topics
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Modeling truncated and censored data with the diffusion model in Stan

Franziska Henrich, K C Klauer
Behavior Research Methods
Mental Health Research Topics
article

Modeling truncated and censored data with the diffusion model in Stan

Franziska Henrich, K C Klauer
article en

Abstract

Reaction time data in psychology are frequently censored or truncated. For example, two-alternative forced-choice tasks that are implemented with a response window or response deadline give rise to censored or truncated data. This must be accounted for in the data analysis, as important characteristics of the data, such as the mean, standard deviation, skewness, and correlations, can be strongly affected by censoring or truncation. In this paper, we use the probabilistic programming language Stan to analyze such data with Bayesian diffusion models. For this purpose, we added the functionality to model truncated and censored data with the diffusion model by adding the cumulative distribution function for reaction times generated from the diffusion model and its complement to the source code of Stan. We describe the usage of the truncated and censored models in Stan, test their performance in recovery and simulation-based calibration, and reanalyze existing datasets with the new method. The results of the recovery studies are satisfactory in terms of correlations ( <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>r</mml:mi> <mml:mo>=</mml:mo> <mml:mo>.</mml:mo> <mml:mn>93</mml:mn> <mml:mo>-</mml:mo> <mml:mn>1.00</mml:mn></mml:mrow> </mml:math> ), coverage (93-95% of true values lie in the 95% highest density interval), and bias. Simulation-based calibration studies suggest that the new functionality is implemented without errors. The reanalysis of existing datasets further validates the new method.

Behavior Research MethodsVol. 58(2)
University of Freiburg (DE), University of Education Freiburg (DE)
Deutsche Forschungsgemeinschaft
Reduced inequalities, Peace, Justice and strong institutions
Openalex Percentile: Top 85%
Mental Health Research Topics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.