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: How to make deciles for 120 Periods


From   Xixi Lin <[email protected]>
To   statalist <[email protected]>
Subject   st: How to make deciles for 120 Periods
Date   Mon, 11 Mar 2013 11:37:16 -0400

Hi,

I know it might be a simple problem, but I really don't know how to do
that. I am trying to decile the independent variables by ID for 120
periods, how to code it in stata?

I can use xtile decile=ID if Period==1, nq(10)   for only 1 periods,
but how can I do it efficiently by 120 periods?

Thanks for any help,
Xixi Lin
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index