Page 1 of 1

genr command (panel data)

Posted: Thu Jan 03, 2013 12:11 pm
by chriscross
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

Re: genr command (panel data)

Posted: Thu Jan 03, 2013 3:39 pm
by EViews Gareth
There's nothing obviously wrong with what you typed.

Re: genr command (panel data)

Posted: Thu Jan 03, 2013 3:41 pm
by EViews Glenn
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.

Re: genr command (panel data)

Posted: Mon Jan 07, 2013 2:52 am
by chriscross
thanks for your reply. i found my mistake and there was nothing wrong with the equation.