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

st: by year: xtile

From   Kaspar Dardas <>
Subject   st: by year: xtile
Date   Tue, 10 Nov 2009 10:43:13 +0100


I have two variables years (2005 2006 2007...) and mcap (which is the
capitalization of firms, numeric values). I would like to create
deciles of mcap by years (not across the entire sample but for each
year) . Is there a quick way to do this besides a loop for the below?

xtile mcapdecile = mcap, nq(10)

Many thanks,


*   For searches and help try:

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