Appending empty years to a panel dataset

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

Marc150
Posts: 10
Joined: Fri Mar 17, 2017 10:50 am

Appending empty years to a panel dataset

Postby Marc150 » Thu May 18, 2017 7:39 am

Hi,

I have a panel dataset that goes to Year t. In my code I create a Variable X that is calculated from lagged values, so that I have the necessary data to create values for Variable X up to Year t+1. However, because my initial dataset only goes to Year t, there is no cell where that could be placed. Therefore, is there a way to append years to a dataset in EViews? (Because I don't have data for those years, they would just be empty cells until I construct the lagged variables).

I realize that I could get around this problem by adding extra years to the original dataset that I've imported into EViews, but I would rather not play around with that dataset.

Thanks,
Marc

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

Re: Appending empty years to a panel dataset

Postby EViews Gareth » Thu May 18, 2017 7:43 am

Double click on the Range: section at the top of your workfile, then change the end date.
Follow us on Twitter @IHSEViews

Marc150
Posts: 10
Joined: Fri Mar 17, 2017 10:50 am

Re: Appending empty years to a panel dataset

Postby Marc150 » Thu May 18, 2017 8:27 am

Oh ok, thanks. Is there a way to do that within a program?

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

Re: Appending empty years to a panel dataset

Postby EViews Gareth » Thu May 18, 2017 8:31 am

pagestruct command.
Follow us on Twitter @IHSEViews


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 8 guests