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

st: constructing subsamples at every year


From   owner-statalist@hsphsun2.harvard.edu
To   statalist@hsphsun2.harvard.edu
Subject   st: constructing subsamples at every year
Date   Wed, 16 Jul 2003 14:37:42 -0500

Dear Statalist users:

I would like to construct subsamples at every year based on a ranking of a
variable. xtile allows us to do it for the entire sample but it cannot be used
with the by command.  Is it possible to get around this?

Thank you,

Ayla

Note: Hypothetically what I would like to do is

by year: xtile newvar=oldvar nq(4)


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index