hello all,
basically I am trying to find the presence of cointegration between German banks CDS score and German Sovereign CDS score so that I can look who is leading the price discovery.
My data starts in 2007 and ends in 2021 and its daily.
the following are the commands I used:
gen logGermanbanksCDSscore = log( GermanbanksCDSscore)
gen logGermany_Soveriegn = log( Germany_Soveriegn)
gen ChangelogGermanbanksCDSscore = logGermanbanksCDSscore - logGermanbanksCDSscore[_n-1]
gen ChangelogGermany_Soveriegn = logGermany_Soveriegn- logGermany_Soveriegn[_n-1]
varsoc ChangelogGermanbanksCDSscore
varsoc ChangelogGermany_Soveriegn
ardl ChangelogGermanbanksCDSscore ChangelogGermany_Soveriegn, lags(4,4) aic
ardl ChangelogGermanbanksCDSscore ChangelogGermany_Soveriegn, lags(4,4) ec btest
ardl ChangelogGermanbanksCDSscore ChangelogGermany_Soveriegn, lags(4,4) regstore(ecreg)
estimates restore ecreg
regress
estat dwatson
estat imtest, white
cusum ChangelogGermanbanksCDSscore ChangelogGermany_Soveriegn




basically I am trying to find the presence of cointegration between German banks CDS score and German Sovereign CDS score so that I can look who is leading the price discovery.
My data starts in 2007 and ends in 2021 and its daily.
the following are the commands I used:
gen logGermanbanksCDSscore = log( GermanbanksCDSscore)
gen logGermany_Soveriegn = log( Germany_Soveriegn)
gen ChangelogGermanbanksCDSscore = logGermanbanksCDSscore - logGermanbanksCDSscore[_n-1]
gen ChangelogGermany_Soveriegn = logGermany_Soveriegn- logGermany_Soveriegn[_n-1]
varsoc ChangelogGermanbanksCDSscore
varsoc ChangelogGermany_Soveriegn
ardl ChangelogGermanbanksCDSscore ChangelogGermany_Soveriegn, lags(4,4) aic
ardl ChangelogGermanbanksCDSscore ChangelogGermany_Soveriegn, lags(4,4) ec btest
ardl ChangelogGermanbanksCDSscore ChangelogGermany_Soveriegn, lags(4,4) regstore(ecreg)
estimates restore ecreg
regress
estat dwatson
estat imtest, white
cusum ChangelogGermanbanksCDSscore ChangelogGermany_Soveriegn
Comment