Skip to content

All material needed to produce the paper "Detecting hysteresis in psychological processes with the HysTAR model"

Notifications You must be signed in to change notification settings

daandejongen/hysteresis_paper

Repository files navigation

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)

Required software (all free and open-source)

To redo the data simulations and analyses, you need to install the statistical programming language $\textsf{R}$ on your computer, which can be downloaded on CRAN. It is recommended to use $\textsf{R}$ in the RStudio IDE (integrated development environment) app. Additionally, for producing the manuscript itself, you need the typesetting program LaTeX installed on your computer. You can use this in a LaTeX-editor on your computer (I use TeXmaker) or in an online LaTeX-editor like Overleaf.

Contents

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}$-packages hystar, foreign and xtable. 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 run readRDS(file = "session_info.RDS") in RStudio).

  • manuscript/ contains all files to (re)produce the manuscript with LaTeX.

  • simulation_studies/, major_depression/, and speed_accuracy_trade_off/ contain the materials to (re)produce the simulations and analyses of the current study, they have their own README file.

Cite

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

About

All material needed to produce the paper "Detecting hysteresis in psychological processes with the HysTAR model"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published