Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: Cumulative Distribution


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Cumulative Distribution
Date   Tue, 27 Sep 2005 17:00:57 +0100

Ronnie said cumulative distribution, but 
his graph example seems more like 
a Lorenz curve to me. 

Nick 
n.j.cox@durham.ac.uk 

Jann Ben

> How about
> 
>  . cumul par_id [aw=ag_area], generate(c)
>  . scatter c par_id, ylabel(0(.1)1)
 
Ronnie Babigumira 

> > I have a data that looks something like this
> > par_id	ag_area
> > 1	112.2
> > 2	91.3
> > 3	74.7
> > 4	64.3
> > 5	57.3
> > 6	42.4
> > 7	75.4
> > 8	77.7
> > 9	102.9
> > 10	108.0
> > 
> > Where par_id is the parish id (an adminstrative unit), and 
> ag_area, is
> > the agricultural area in a given parish
> > 
> > I would like to plot a cumulative distribution of the 
> ag_area. I would
> > like a plot that would look something like
> > 
> > ag_area(%)
> > 100       * * *
> > |      *
> > |    *
> > |  *
> > |*
> > |_ _ _ _ _ _ _ __ (number of parishes %)
> >                   100
 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index