Im trying to run the following regression but a "near singular matrix" message keeps popping up. I'ld appreciate any suggestion or input to solve this issue:
y2 = y2(-1) + error_whitenoise1
y1 = y2(-1)
I_tar = (y1 >= 0)
freeze(yuroot) eq01.ls d(y2) I_tar*y1 (1-I_tar)*y1 c
*This is meant to create a data generating process with the following structure:
d(y)=rho1*y(-1)*dummy+rho2*y(-1)*(1-dummy)+error, where dummy is "I_tar" for the TAR model.
Thanks in advance!
TAR-MTAR - Singular Matrix
Moderators: EViews Gareth, EViews Moderator
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: TAR-MTAR - Singular Matrix
Does I_tar have variance?
Re: TAR-MTAR - Singular Matrix
I_tar is a dummy = 1 when y(-1)>=0, and 0 when y(-1)<0
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: TAR-MTAR - Singular Matrix
Sure, but does it actually have variance? I mean is it the case that, in your estimation sample, it only has 0s or only has 1s?
Re: TAR-MTAR - Singular Matrix
Nope. It is always 1
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: TAR-MTAR - Singular Matrix
Then (1-I_tar)*y1 is perfectly correlated with the constant.
Who is online
Users browsing this forum: No registered users and 2 guests
