genr command (panel data)

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

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

chriscross
Posts: 5
Joined: Thu Jan 03, 2013 12:06 pm

genr command (panel data)

Postby chriscross » Thu Jan 03, 2013 12:11 pm

dear all,

i am trying to manipulate panel data, i.e. i have 10 years of observation per group and then a few cross sectional variables, like return of investment.

i now want to generate a lagged variable, and i thought i just have to type "genr xlag = x(-1)"
but it gives me "syntax error"

is there a special command for equations if you have panel data?

i hope this question is understandable, if not i will try to provide more details. thank you so much in advance, this forum already helped me a few times but i never wrote a question by myself.

cheers and have a good week,

chris

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

Re: genr command (panel data)

Postby EViews Gareth » Thu Jan 03, 2013 3:39 pm

There's nothing obviously wrong with what you typed.

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

Re: genr command (panel data)

Postby EViews Glenn » Thu Jan 03, 2013 3:41 pm

To add to Gareth's answer, one advantage of defining a panel workfile is that computations are "seam-aware" so that lags will not cross into another cross-section.

chriscross
Posts: 5
Joined: Thu Jan 03, 2013 12:06 pm

Re: genr command (panel data)

Postby chriscross » Mon Jan 07, 2013 2:52 am

thanks for your reply. i found my mistake and there was nothing wrong with the equation.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests