Dated data tabel

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

Lauw
Posts: 10
Joined: Mon Aug 27, 2012 5:27 am

Dated data tabel

Postby Lauw » Mon Aug 27, 2012 8:36 am

I make use of a panel data set. Whenever i use the dated data table, the values that come up are the medians per year. Is there any way to change this to average values. I also believe that the data that comes up is from an individual sample, and not the common sample.
Using Eviews 7.2.
Any help would be greatly appreciated!

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

Re: Dated data tabel

Postby EViews Gareth » Mon Aug 27, 2012 8:46 am

Unfortunately dated data tables are not really panel friendly, and there is no way to change that behaviour.

Lauw
Posts: 10
Joined: Mon Aug 27, 2012 5:27 am

Re: Dated data tabel

Postby Lauw » Tue Aug 28, 2012 5:02 am

Would there be an easy way to divide the data per year. I'm using an excel file but some data has 7 years of entries, while others have only 2 or 3

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

Re: Dated data tabel

Postby EViews Gareth » Tue Aug 28, 2012 7:50 am

Set the sample to be each year?

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

Re: Dated data tabel

Postby EViews Glenn » Tue Aug 28, 2012 9:41 am

I may be missing something in the question, but it strikes me that

Code: Select all

series ymeans = @meansby(y, @year)
will give you the year means matched back to each observation. You could then use a sample filter to get a unique set of observations.

Lauw
Posts: 10
Joined: Mon Aug 27, 2012 5:27 am

Re: Dated data tabel

Postby Lauw » Wed Aug 29, 2012 4:49 am

First off thank you all very much for your time and help.

Secondly, I'm unable to set the sample to a single year only, I believe this is because it's panel data, but im unsure.

Lastly, I'm completely in the dark when it comes to coding. Would it take me long to figure it out and use Glenn's code?

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

Re: Dated data tabel

Postby EViews Gareth » Wed Aug 29, 2012 8:02 am

You can set the sample to be a single year in a panel. Same way you would in a non-panel.

To use glenn's code, just copy and paste it into the EViews command window, and hit return.

Lauw
Posts: 10
Joined: Mon Aug 27, 2012 5:27 am

Re: Dated data tabel

Postby Lauw » Fri Aug 31, 2012 4:31 am

I still can't use glenn's code or set sample to one year only. It keeps telling me that y is not defined. Maybe I had to mentionthat I open the variables as group and then use view>dated data tabel

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

Re: Dated data tabel

Postby EViews Gareth » Fri Aug 31, 2012 6:44 am

Replace "y" with the name of your variable.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests