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

st: RE: Cumulative Distribution


From   "Jann Ben" <[email protected]>
To   <[email protected]>
Subject   st: RE: Cumulative Distribution
Date   Tue, 27 Sep 2005 14:34:25 +0200

How about

 . cumul par_id [aw=ag_area], generate(c)
 . scatter c par_id, ylabel(0(.1)1)

ben

Ronnie Babigumira wrote:
> Dear Lister's
> 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
> 
> Any help on how to go about this
> 
> Ronnie

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index