Which matrix is near singular?
Moderators: EViews Gareth, EViews Moderator
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: Which matrix is near singular?
It's not the moments that I'm asking about it's the weighting. How do you want the GMM to do the weighting?
-
freedomplaza
- Posts: 13
- Joined: Tue May 31, 2016 7:48 am
Re: Which matrix is near singular?
Soory didn't notice your response on page 2 of the thread...
Ideally 2-step optimal weighting. For starters, getting results with an identity weighting matrix would be a success.
Ideally 2-step optimal weighting. For starters, getting results with an identity weighting matrix would be a success.
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: Which matrix is near singular?
Thought about this a bit last night.
The issue with EViews estimation of the TSLS model is that the only algorithm that we currently offer for system estimation is Gauss-Newton. GN doesn't work well in your setting, as the OPG for your model is, by construction, going to be poorly behaved. To see this, note that the projection defined by your single instrument effectively computes the means by equation so there is no variation in the projected gradients within an equation. Put differently, in the IV case with only a ones vector, the OPG for the stacked data configuration is equivalent to one in which there are only two observations.
On a related note, this fact makes it unclear to me as to what optimal two-step weighting may mean in this context.
That said, it is possible to estimate the model with other methods. I've put together a program [attached] which takes your moment specification and estimates it directly using the EViews optimize command to estimate the parameters using BFGS. It hasn't been tested, nor the results verified, but it should get you going.
The issue with EViews estimation of the TSLS model is that the only algorithm that we currently offer for system estimation is Gauss-Newton. GN doesn't work well in your setting, as the OPG for your model is, by construction, going to be poorly behaved. To see this, note that the projection defined by your single instrument effectively computes the means by equation so there is no variation in the projected gradients within an equation. Put differently, in the IV case with only a ones vector, the OPG for the stacked data configuration is equivalent to one in which there are only two observations.
On a related note, this fact makes it unclear to me as to what optimal two-step weighting may mean in this context.
That said, it is possible to estimate the model with other methods. I've put together a program [attached] which takes your moment specification and estimates it directly using the EViews optimize command to estimate the parameters using BFGS. It hasn't been tested, nor the results verified, but it should get you going.
- Attachments
-
- test_tsls.prg
- (1.95 KiB) Downloaded 290 times
Who is online
Users browsing this forum: No registered users and 2 guests
