Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Fill


From   Tiago Fonseca <[email protected]>
To   [email protected]
Subject   st: Fill
Date   Fri, 26 Feb 2010 12:45:52 +0000

 Hi.

How can I solve this problem. I have a set of data like these:
Industry code
	Decile
	Year
1
	1
	1999
2
	6
	1999
4
	9
	1999
4
	.
	2001
2
	.
	2001
1
	.
	2001
2
	.
	2002


I have a industry code, the decile of the base year (1999) and I want to fill the decile in the remaining years. The solution will be like:
9
6
1
6

How to solve it for a large set of data?

Kind regards,
Tiago Fonseca
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index