De-trending variables algorithm

function that make all time series stationary, and return number of differencing for each one

您现在正在关注此提交

This function uses as input a matrix whose column are different time series. Than it controls for each one if they are stationary or not, using an augmented Dickey-Fuller test for unit root. if the test fails and some variables follow a stationary trend, then the algorithm works on differences until the variable became stationary. Moreover there is a vector "counter", which says how many time the difference has been performed.
Differerencing is obtained by taking log-differences

引用格式

raffaele (2026). De-trending variables algorithm (https://ww2.mathworks.cn/matlabcentral/fileexchange/52009-de-trending-variables-algorithm), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 Time Series 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0