genr command (panel data)
Posted: 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
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