Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: re: panel data mgmt: dividing into quartiles for each year


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: re: panel data mgmt: dividing into quartiles for each year
Date   Sun, 15 May 2005 18:15:12 -0400

webuse grunfeld,clear
qui forv i=1935/1954 {
	egen quartile`i' = cut(mvalue) if year==`i', group(4)
	replace quartile`i'=quartile`i'+1
	}
su quartile*


Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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