 |
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: percentile variables
<>
*************
egen, pctile()
*************
does allow -by-.
HTH
Martin
-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Maximiliano
Manuel Silva Correa
Sent: Freitag, 9. Juli 2010 20:03
To: statalist@hsphsun2.harvard.edu
Subject: st: percentile variables
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/
*
* 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/