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

st: kdensity


From   "Branko Milanovic" <bmilanovic@carnegieendowment.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: kdensity
Date   Fri, 22 Apr 2005 13:40:39 -0400

When you do kdensity X, STATA charts a kernel density fct of X's. Now,
is there a command that would allow me to take the density function thus
generated and chart a cumulative density (or distribution) function?
Ideally, I would like to do that for both densities, that is to go from
a overlay graph

twoway (kdensity X) (kdensity Y)

To a similar overlay graph of two cumulative density functions. 

Or is the only way to use:

kdensity X, gen(aa bb)

And then generate a cumulative function of aa? By the way, I tried that
but the graph did not turn out well. 

Thanks. 

Branko Milanovic



 
IMPORTANTISSIMO:
 
You can start using my new (old) Email address:
bmilanovic@worldbank.org
 
Carnegie Endowment for International Peace
1779 Massachusetts Avenue NW
Washington DC 20036
Email: bmilanovic@ceip.org or branko_mi@yahoo.com
tel: 202-473-6968 (leave a message)
www.worldbank.org/research/inequality
http://econpapers.hhs.se/RAS/pmi44.htm
http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=149002
 

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