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: RE: percentile variables


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: percentile variables
Date   Fri, 9 Jul 2010 22:13:46 +0200

<>

*************
egen, pctile()
*************

does allow -by-.

HTH
Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Maximiliano
Manuel Silva Correa
Sent: Freitag, 9. Juli 2010 20:03
To: [email protected]
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/


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