Create a combination of time series and test for each combination a test

If I have the following matrix composed from name of stocks and their daily price time series
IBM JPM C
p11 p12 p13
p21 p22 p23
....................
pn1 pn2 pn3
and I want to obtain all possible linear combination (eg C-JPM, JPM-IBM, C-IBM) and test for each couple the cointegration test (adf), to obatin:
C-JPM=result test
JPM-IBM=result test
C-IBM=result test

Answers (0)

This question is closed.

Asked:

on 22 Sep 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!