Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Fixing the value in egen command


From   Choudry T Shehzad <[email protected]>
To   [email protected]
Subject   st: Fixing the value in egen command
Date   Tue, 23 Dec 2008 14:45:15 +0100

Dear Statalisters:

I have a small question: In a panel data if I want to generate a
variable which takes the value equal to the mean of GDP I use the command

by country year, sort : egen float abxx = mean(GDP)

Now I want to make another variable that contains initial value of GDP
fixed (for all years) equal to e.g. value of GDP in year 1885
corresponding to each country. How can I modify the above command?

Thanks for help,

Tanveer
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index