Detecting hysteresis in psychological processes with the hysteretic threshold autoregressive (HysTAR) model
Repository with all materials to (re)produce the paper "Detecting hysteresis in psychological processes with the hysteretic threshold autoregressive (HysTAR) model". (OSF PsyArchiv Pre-print here)
To redo the data simulations and analyses, you need to install the statistical programming language
The top folder consists of the following folders and files:
-
hysteresis_paper.Rproj
, to open the project in RStudio (makes sure that file paths are specified correctly, and$\textsf{R}$ -objects are not contaminated with$\textsf{R}$ -objects from other projects). -
with the script
install_dependencies.R
, you can install the$\textsf{R}$ -packageshystar
,foreign
andxtable
. Here, it is also checked if your versions of these packages are not older than the versions I used in my study, if you already have installed the packages before. -
Load
session_info.RDS
for the detailed information about the software I used (open it manually in RStudio, or runreadRDS(file = "session_info.RDS")
in RStudio). -
manuscript/
contains all files to (re)produce the manuscript with LaTeX. -
simulation_studies/
,major_depression/
, andspeed_accuracy_trade_off/
contain the materials to (re)produce the simulations and analyses of the current study, they have their own README file.
To cite this paper, you can use this in BibTeX:
@article{detecting_hysteresis,
title={Detecting hysteresis in psychological processes with the hysteretic threshold autoregressive (HysTAR) model},
author={De Jong, Daan and Ryan, Ois\'{i}n and Van der Maas, Han L. J. and Hamaker, Ellen L.},
year = {2019},
publisher = {PsyArXiv},
doi = {10.31234/osf.io/zrcft}
}
Or copy this:
de Jong, D., Ryan, O., van der Maas, H. L. J., & Hamaker, E. L. (2023). Detecting hysteresis in psychological processes with the hysteretic threshold autoregressive (HysTAR) model. https://doi.org/10.31234/osf.io/zrcft