Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Maximiliano Manuel Silva Correa <maxsilvacorrea@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
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/