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]

Re: st: splitting the dataset into percentiles by groups


From   "Roger B. Newson" <[email protected]>
To   [email protected]
Subject   Re: st: splitting the dataset into percentiles by groups
Date   Fri, 20 Jul 2012 15:01:07 +0100

I think what you need is the -xtile- command. In Stata, type -help xtile- to find out more.

Best wishes

Roger


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

Opinions expressed are those of the author, not of the institution.

On 20/07/2012 14:43, Sebastian Witt wrote:
Hi guys,

i am completely new to stata and have a question regarding the
splitting of my dataset into percentiles.

I am examining the impact of migration on the wage distribution and am
considering variation over time
and regions (provinces). so for each province for each year i need the
different percentiles of wages. does anyone
know how to do this without splitting up the dataset in excel prior to
stata? I have been trying with the
-centile- function but i dont know how to tell stata to do that for
every year and every province and additionaly
to expand this to the control variables aswell.

thanks a lot!!!!

seb
*
*   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