Trend Removal for Vector Autoregressive Workflows

Detrending multivariate time-series to approximate stationarity when dealing with intensive longitudinal data, prior to Vector Autoregressive (VAR) or multilevel-VAR estimation. Classical VAR assumes weak stationarity (constant first two moments), and deterministic trends inflate spurious autocorrelation, biasing Granger-causality and impulse-response analyses. All functions operate on raw panel data and write detrended columns back to the data set, but differ in the level at which the trend is estimated. See, for instance, Wang & Maxwell (2015) ; Burger et al. (2022) ; Epskamp et al. (2018) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("statioVAR")

0.1.3 by Giuseppe Corbelli, a year ago


https://github.com/g-corbelli/statioVAR


Report a bug at https://github.com/g-corbelli/statioVAR/issues


Browse source code at https://github.com/cran/statioVAR


Authors: Giuseppe Corbelli [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL-3 license


Imports dplyr, rlang, stats

Suggests shiny, testthat, knitr, rmarkdown


See at CRAN