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

st: Fixing the value in egen command

From   Choudry T Shehzad <>
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,

*   For searches and help try:

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