Page 1 of 1

How to restrict a variable to its initial observation

Posted: Thu Jun 23, 2016 3:57 am
by Tuinsmurf
Hello,

I am running an economic growth regression for 8 countries between 1984-2008. One of the first independent variables is the initial GDP per capita for each country.

How would I restrict my variable to the initial observation for each country in a regression in EViews? I thought about creating another variable in excel, which only shows the initial observation for each country, but I am not sure if importing this into EViews will yield the same results.

Thank you for the help!

Tuinsmurf

Re: How to restrict a variable to its initial observation

Posted: Thu Jun 23, 2016 5:50 am
by EViews Gareth
You'll end up with a variable that is constant for each cross-section. That's just a fixed effect.

Re: How to restrict a variable to its initial observation

Posted: Thu Jun 23, 2016 8:59 am
by startz
Not necessarily. Including the initial observation isn't the same as including a fixed effect because all countries are constrained to have the same coefficient.

Re: How to restrict a variable to its initial observation

Posted: Thu Jun 23, 2016 10:47 am
by EViews Glenn
Assuming you are panel structured

Code: Select all

series z=@firstsby(y, @crossid)