I am estimating a var with lag restrictions, what I believe is called a near VAR, I'm using iterative SUR which as I understand is the correct estimation method for this problem. Interestingly, it works fine if I don't specify the iteration numbers:
Code: Select all
* Estimate with SUR
sur(model = restricted_var, cvout = restr_sig)
Code: Select all
* Estimate with SUR
sur(model = restricted_var, cvout = restr_sig, iter = 20)
Code: Select all
## REG13. Singular Regressions - Check for Collinearity among Rows 1 to 85.
The system I am estimating is below (I can upload the data / full program if it helps?)
Code: Select all
* Estimate restricted model with SUR. To do so, we set up a near-VAR using EQUATION and GROUP commands
EQUATION usgdp_eq lgdpus_dt
# lgdpus_dt{1 to 3} rus_dt{1 to 3}
EQUATION tot_eq ltot_dt
# lgdpus_dt{1 to 3} ltot_dt{1 to 3} rus_dt{1 to 3}
EQUATION rus_eq rus_dt
# lgdpus_dt{1 to 3} rus_dt{1 to 3}
EQUATION usq_eq lusq_dt
# lgdpus_dt{1 to 3} rus_dt{1 to 3} lusq_dt{1 to 3}
EQUATION xgs_eq lxgs_dt
# lgdpus_dt{1 to 3} ltot_dt{1 to 3} lxgs_dt{1 to 3}
EQUATION ausq_eq lausq_dt
# lgdpus_dt{1 to 3} ltot_dt{1 to 3} rus_dt{1 to 3} lusq_dt{1 to 3} lausq_dt{1 to 3} lgne_dt{1 to 3} lgdp_dt{1 to 3} $
cinfl_dt{1 to 3} rcash_dt{1 to 3} lrtwi_dt{1 to 3}
EQUATION gne_eq lgne_dt
# ltot_dt{1 to 3} lausq_dt{1 to 3} lgne_dt{1 to 3} lgdp_dt{1 to 3} cinfl_dt{1 to 3} rcash_dt{1 to 2} lrtwi_dt{1 to 3}
EQUATION gdp_eq lgne_dt
# lgdpus_dt{1 to 3} ltot_dt{1 to 3} lxgs_dt{1 to 3} lausq_dt{1 to 3} lgne_dt{1 to 3} lgdp_dt{1 to 3} cinfl_dt{1 to 3} rcash_dt{1 to 2} lrtwi_dt{1 to 3}
EQUATION cinfl_eq cinfl_dt
# ltot_dt{1 to 3} lgne_dt{1 to 3} cinfl_dt{1 to 3} rcash_dt{1 to 3} lrtwi_dt{1 to 3}
EQUATION rcash_eq rcash_dt
# lgne_dt{1 to 3} cinfl_dt{1 to 3} rcash_dt{1 to 3} lrtwi_dt{1 to 3}
EQUATION rtwi_eq lrtwi_dt
# lgdpus_dt{1 to 3} ltot_dt{1 to 3} rus_dt{1 to 3} lusq_dt{1 to 3} lausq_dt{1 to 3} lgne_dt{1 to 3} lgdp_dt{1 to 3} $
cinfl_dt{1 to 3} rcash_dt{1 to 3} lrtwi_dt{1 to 3}
* put into group
GROUP restricted_var usgdp_eq tot_eq rus_eq xgs_eq ausq_eq gne_eq gdp_eq cinfl_eq rcash_eq rtwi_eq
Adam