when I run panel gls( cross-section effect , cross-section weight),
dependt var is toa, independent is mktpwr, crossid is stoc
the message diplayed is "positive or non-negative argument to function expected in computation of group weight(variance)"
I don't know how to deal with it correctly. The wf1 file is attached, help pls!
"positive or non-negative argument" with panel gls estimate
Moderators: EViews Gareth, EViews Moderator
"positive or non-negative argument" with panel gls estimate
- Attachments
-
- quest.wf1
- (458.7 KiB) Downloaded 728 times
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: "positive or non-negative argument" with panel gls estim
You can see what's going on if you run your model without the cross-section weights and compute residuals, you'll see that for cross-section 600603, you have but a single observation. With the fixed effects added for this cross-section, the residual is identically equal to zero so that we are unable to compute cross-section weights.
Re: "positive or non-negative argument" with panel gls estim
Thanks, I have checked my data, it is really as what you discribe. And when I exclude this cross-section , the message diappears.You can see what's going on if you run your model without the cross-section weights and compute residuals, you'll see that for cross-section 600603, you have but a single observation. With the fixed effects added for this cross-section, the residual is identically equal to zero so that we are unable to compute cross-section weights.
So when that message pops up, does it suggest that observations for some cross- section be too few, and I should check it?
Under other circumstances, will this message pop up?
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: "positive or non-negative argument" with panel gls estim
In this context it means that there is at least one cross-section with zero variances for the residuals. There are a variety of reasons why this might occur, one of which was present in this case...
Re: "positive or non-negative argument" with panel gls estim
Thanks a lot, Glenn. Your explaination is very helpful.In this context it means that there is at least one cross-section with zero variances for the residuals. There are a variety of reasons why this might occur, one of which was present in this case...
I wish Eviews could publish an error message book for us in the future, or just as a part of appendix of "command and programm".
Who is online
Users browsing this forum: No registered users and 2 guests
