Create a combination of stocks to test the cointegration from a database

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

Antworten (0)

Diese Frage ist geschlossen.

Gefragt:

am 22 Sep. 2015

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by