Professional Documents
Culture Documents
Hi,
say you want the 25th percentile:
sort year
by year: egen p25 = pctile(price), p(25)
Hope this helps!
Mario
On 7/16/05, Yvonne Capstick <yvonnecapstick@hotmail.com> wrote:
>
> Hi,
>
open in browser PRO version
pdfcrowd.com
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
*
*
*
*
*
I am able to generate easily the median of a variable for a given year, e.g.
sort year
by year: egen medianprice = median(price)
Does anyone know
variable? I know
percentiles, and
it can't be used
Thanks
Yvonne
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
*
*
*
*
*
pdfcrowd.com
References:
st: Generating percentiles
From: "Yvonne Capstick" <yvonnecapstick@hotmail.com>
Prev by Date: st: Generating percentiles
Next by Date: st: syntax error in forvalues range definition using a tempvar??
Previous by thread: st: Generating percentiles
Next by thread: st: syntax error in forvalues range definition using a tempvar??
Index(es):
Date
Thread
Copyright 19962015 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index
pdfcrowd.com