Near singular Matrix when extending sample size

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

altaus
Posts: 20
Joined: Fri Jan 30, 2015 6:46 am

Near singular Matrix when extending sample size

Postby altaus » Fri Aug 19, 2016 2:25 am

Hi,

I have set up a program in which I use a 3sls system to forecast bond yields. First, I set up the equation for the system (without estimating). Then, I go on to create the variable forecasts through ARMA models, and by importing manually inputted values from Excel. This later steps seems to be causing the problem in the estimation step (Error "Near singluar matrix"), which is the next one, but this only happens when I use the latest row of data (August data in the Excel file). When I remove the August data it works fine. I have also noticed that if I reduce the estimation sample by starting it from @first +3, it does work but provides significantly different results to those with the data up to July.

I would appreciate if you could have a look. I imagine I am overlooking something, but I can't make up my mine.

Thanks a lot,
Marta

P.D The program requires the path link to the Excel file twice, and in pop-up box you'll need to select SR.
Attachments
threesls_forecasting.prg
eViews program
(12.68 KiB) Downloaded 253 times
G4 dataset.xlsx
Excel file with data
(1.02 MiB) Downloaded 237 times

altaus
Posts: 20
Joined: Fri Jan 30, 2015 6:46 am

Re: Near singular Matrix when extending sample size

Postby altaus » Thu Sep 08, 2016 6:29 am

Hi,

Having read posts about the same issue, I have checked the coefficients in C and I have realized that the intercept for japan gets really messed up when adding the last data point (this is when the error occurs). I can't figure out why but if this is a collinerarity problem, I don't understand why just one data point would make such a difference for the series. If I substitute the new data point in jp_lr and jp_sr for the previous one, I don't get the error message anymore. Any idea why this is happening?

The C(7) coefficient is around 1.4 level in most of the iterations, but when using the data for August it goes up to -228978.174. This also seems to have an impact on the German intercept C(1) which is around 0.7 for most of the monthly iteration, except for July when it goes down to 0.3 and August when it goes up to 9.73.

Thanks for your help in advance.

Marta

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13319
Joined: Tue Sep 16, 2008 5:38 pm

Re: Near singular Matrix when extending sample size

Postby EViews Gareth » Thu Sep 08, 2016 8:19 am

You'll probably receive more help if you just provide an EViews workfile with the system (I presume?) object in it, then tell people which sample works and which doesn't.
Follow us on Twitter @IHSEViews

altaus
Posts: 20
Joined: Fri Jan 30, 2015 6:46 am

Re: Near singular Matrix when extending sample size

Postby altaus » Thu Sep 08, 2016 9:20 am

Ok, I attach two workfiles with the results here

1. g4 dataset NOT WORKING >> if you try to estimate the system it provides with the near singular error.
2. g4_dataset OK substituting values>> the last observation in jp_lr and jp_sr has been changed and the system works
Attachments
g4 dataset_OK_substituing values.WF1
Workfile 2: OK
(757.12 KiB) Downloaded 223 times
g4 dataset_NOT WORKING.WF1
Workfile 1: Not working
(377.01 KiB) Downloaded 217 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13319
Joined: Tue Sep 16, 2008 5:38 pm

Re: Near singular Matrix when extending sample size

Postby EViews Gareth » Thu Sep 08, 2016 9:22 am

Neither system estimates for me.
Follow us on Twitter @IHSEViews

altaus
Posts: 20
Joined: Fri Jan 30, 2015 6:46 am

Re: Near singular Matrix when extending sample size

Postby altaus » Thu Sep 08, 2016 9:31 am

I don't know what to say. I have tried them again by downloading them in my computer and running both of them and I get the "near singular matrix" in the first. the second one runs normally. What error do you get?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13319
Joined: Tue Sep 16, 2008 5:38 pm

Re: Near singular Matrix when extending sample size

Postby EViews Gareth » Thu Sep 08, 2016 9:41 am

Near singular matrix. I would guess that both are borderline/knife-edge singular, and machine slop is what is causing it to fall one side or the other.
Follow us on Twitter @IHSEViews

altaus
Posts: 20
Joined: Fri Jan 30, 2015 6:46 am

Re: Near singular Matrix when extending sample size

Postby altaus » Thu Sep 08, 2016 9:46 am

so what do you recommend for this? It is Japan that is causing the problem, but with the extra data point. Does that make sense to you?


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 18 guests