Dear Tom Doan,
I have the problem with MSVAR estimation.
source msvarsetup.src
open data forex.xls
cal(weekly) 2005 6 3
data(for=xls,org=columns) 2005:6:3 2011:12:30 SG KR TL ML ID PH
compute gstart=2005:6:3, gend=2011:12:30
@msvarsetup(lags=3,states=2,switch=mh)
# SG KR TL ML ID PH
@msvarinitial gstart gend
@msvaremgeneralsetup
do emits=1,50
@msvaremstep gstart gend
disp "Iteration" emits "LOg Likelihood" %logl
end do emits
The output reports:
Iteration 1 Log Likelihood NA
The Error Occurred At Location 186, Line 19 of %MSVARINIT
Called From Location 200, Line 11 of MSVARFILTERINIT
Called From Location 82, Line 10 of MSVARFILTER
Called From Location 62, Line 9 of MSVARESTEP
Called From Location 118, Line 9 of MSVAREMSTEP
Called From Location 68, Line 2 of loop/block
## MAT14. Non-invertible Matrix. Using Generalized Inverse for SYMMETRIC
(and the same for Iteration 2-50)
Could you please tell me why the problem and how should I do to fix that.
Thank you very much!
Best wishes,
Chau Le
