De-trending variables algorithm

Version 1.0.0.0 (1.27 KB) by raffaele
function that make all time series stationary, and return number of differencing for each one
167 Downloads
Updated 7 Jul 2015

View License

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

Cite As

raffaele (2024). De-trending variables algorithm (https://www.mathworks.com/matlabcentral/fileexchange/52009-de-trending-variables-algorithm), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Time Series in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0