Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: How Do I divide the sample into quintiles in Stata?


From   Kibrom Tafere <kibtaf@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: How Do I divide the sample into quintiles in Stata?
Date   Thu, 11 Mar 2010 10:05:34 +0300

1. If the expenditure variable is 'exp' and 'weight' is the weighting
variable, then to create the income quintiles type

xtile quintile=exp[aw=weight], n(5)

you can use the 'if' command if necessary. i.e

xtile quintile=exp[aw=weight] if------, n(5)

2. you can tabulate your expenditure vairable by the income quintiles. if
the number of visits is labled as 'visit'

table exp, c(n visit)

Cheers

On Wed, Mar 10, 2010 at 12:55 PM, Stevie Kourama <ngareni3@gmail.com> wrote:

> 1. I have sample with a number of variables such as household net
> expenditure ( which proxies the income of the household) visits to
> health facilities; current level of education, residence (rural and
> urban) and I would like to divide the sample into quintiles (groups of
> 20%), how do i do it in stata?
>
> 2. How do we compare the visits to health facilities by people with
> low  income with the number of visits by household with high income(
> low and higher income proxied as low net expenditure and higher
> household net expenditure) and express all these into quintiles
> shares?
>
> Please assist the stata commands to execute the above and thanks in advance
>
> --
> Stevie Kourama
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index