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: percentile variables
From
Maximiliano Manuel Silva Correa <[email protected]>
To
[email protected]
Subject
st: percentile variables
Date
Fri, 9 Jul 2010 14:03:09 -0400
Hello everybody,
Im wondering how could i create a variable of percentiles using By
suppose we have power consumption data, our variables are
state
city
power_plant_type
power consumption
day_period
id like to do something like
bys stata city power_plant_type day_period: pctile power, pctile(10(10)90)
Thank u in advance
Max
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/