Bug with panel data

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

PhilW
Posts: 7
Joined: Mon Nov 29, 2010 2:14 pm

Bug with panel data

Postby PhilW » Mon Nov 29, 2010 2:27 pm

When using panel data (fixed effects) we found that in sample forecasted values are inconsistent with fitted values. In sample they should be equal. We believe the forecasted values to be correct. In some cases, for some cross sections, all fitted values are less than the actuals so the errors for the cross section are all of the same sign. This isn’t right. We found that a solution is to use @expand() on the cross section variable rather than structure the data as fixed effects. This works in that the forecasted and fitted values are equal AND equal to the forecasted values when the panel data method is used. However the standard errors are very different between the approaches, indicating that AT LEAST one of them is wrong.

This is a significant bug and needs to be fixed as most of our models use this type of structure. Short term would you please tell me which of the two approaches gives correct standard errors?

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

Re: Bug with panel data

Postby EViews Gareth » Mon Nov 29, 2010 2:44 pm

Could you state the version number and build date of your copy of EViews (both available from Help->About EViews)

PhilW
Posts: 7
Joined: Mon Nov 29, 2010 2:14 pm

Re: Bug with panel data

Postby PhilW » Mon Nov 29, 2010 3:15 pm

Eviews7 Jan 14 2010 build

I sent an email to support on 11/18 at 4:49 but never heard back.

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Bug with panel data

Postby startz » Mon Nov 29, 2010 3:20 pm

You might want to update your copy of EViews and see if the problem is still there.

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

Re: Bug with panel data

Postby EViews Gareth » Mon Nov 29, 2010 3:28 pm

Your email was replied to at 13.54 (PST) on November 18th, with essentially the same reply as Startz - your copy of EViews 7 is woefully out of date.

PhilW
Posts: 7
Joined: Mon Nov 29, 2010 2:14 pm

Re: Bug with panel data

Postby PhilW » Tue Nov 30, 2010 2:37 pm

Updated to Nov 11 2010 build. This is the most current. All problems and bugs persist exactly as previously described. As a paying customer I ask for you to please devote effort towards a resolution.

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

Re: Bug with panel data

Postby EViews Gareth » Tue Nov 30, 2010 2:47 pm

Could you provide us with your workfile and instructions on how to replicate the problem?

PhilW
Posts: 7
Joined: Mon Nov 29, 2010 2:14 pm

Re: Bug with panel data

Postby PhilW » Tue Nov 30, 2010 2:49 pm

I emailed an example data set.

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Bug with panel data

Postby EViews Glenn » Tue Nov 30, 2010 5:09 pm

Thanks. That helps a great deal.

It appears that there is a bug in the exporting of residuals for the AR model with fixed effects. Note that this code is separate from the estimation code so that all statistical results (SSRs, etc.) appear to be correct, but we are outputting the wrong residuals to the workfile (which is why your actual/fitted/resid table/graph looks funny).

I have a fix working in my test code which I'm going to put through some paces to make certain that I haven't caused any other problems. It should show up shortly in a patch.

Our apologies for the inconvenience. Let me know if you have any other questions.

PhilW
Posts: 7
Joined: Mon Nov 29, 2010 2:14 pm

Re: Bug with panel data

Postby PhilW » Wed Dec 01, 2010 8:18 am

Thanks. That is one of the two related issues.

If you look at the parameter estimates of the two models you see that they are all exactly the same. In the Dummy_Variables model @expand on the cross section variable acts as fixed effects coef. Despite all the coefficients being identical the standard errors and t-stats are hugely different with much higher confidence in the Dummy_Variables model. This would have a significant impact on model selection. I tend to believe the standard errors in the model with fixed effects but this implies a problem with the other model. Maybe there's something wrong that happens when a dataset is structured as Panel but the model isn't.

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

Re: Bug with panel data

Postby EViews Gareth » Wed Dec 01, 2010 8:36 am

In your panel_options equation you've set the covariance method as "White Cross-section". In the dummy_variables equation, you've set the covariance method as "ordinary". If you switch them to use the same method, you'll find the standard errors match.

PhilW
Posts: 7
Joined: Mon Nov 29, 2010 2:14 pm

Re: Bug with panel data

Postby PhilW » Wed Dec 01, 2010 9:36 am

Yes they do. Thanks.

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

Re: Bug with panel data

Postby EViews Gareth » Thu Dec 02, 2010 10:32 am

The latest patch should fix the first issue for you.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests