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

st: constructing subsamples at every year

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,


Note: Hypothetically what I would like to do is

by year: xtile newvar=oldvar nq(4)

*   For searches and help try:

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