Re: Recursive VECM - Johansen ML technique
Posted: Wed Mar 20, 2024 3:40 am
Probably easier to includeTomDoan wrote: ↑Mon Mar 18, 2024 9:23 amDET=RC and DET=RTREND are the only ones that are more complicated, and that is only because they anticipate a restriction on the intercept (or trend). The adjusted "PI" matrix in rearranging the unrestricted VAR simply adds a column of the estimates on the constant (DET=RC) and trend term (DET=RTREND).ac_1 wrote: ↑Mon Mar 18, 2024 2:59 am (ii) To aid my understanding, given a VAR-in-levels with DET=NONE or DET=CONSTANT I can manually calculate the PI matrix
PI = - (I - GAMMA(1) - GAMMA(2) - ... - GAMMA(p))
where
I is the identity matrix
GAMMA's are the matrices of parameters up to the AR(pth) lag.
How to 'by-hand' calculate PI including the deterministic terms: DET=RC, DET=TREND, and SEASONAL?
comp PI = loadings*tr(vectors))
to calculate PI in JohMLE.src
From, https://www.estima.com/ratshelp/index.h ... edure.html
DET=NONE/[CONSTANT]/TREND/RC, should be RTREND to get the additional column of estimates, although @JOHMLE accepts TREND as-well?
(vii) If I run my acmtsICRS.src procedure for plotting of the inverse roots.
I get an error
Dimension Companion matrix
## MAT1. Matrix COMPANION Has Not Been Dimensioned
Here
Code: Select all
* AR roots
if (mts == 0)
compute companion=%modelcompanion(mtsmodel)
eigen(cvalues=mtsroots) companion
if (mts == 1)
compute companion=%modelcompanion(%modelsubstect(mtsmodel))
eigen(cvalues=mtsroots) companionHow to declare the dimension of the Matrix beforehand?