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

st: Plots : Gamma density


From   "Naji Nassar (MIReS)" <naji.nassar@mires.fr>
To   "Stata-L (E-mail)" <statalist@hsphsun2.harvard.edu>
Subject   st: Plots : Gamma density
Date   Tue, 22 Jun 2004 10:38:07 +0200

Hi all,


I want to plot an histogram with gamma density
pgamma is showing perfect fit..

but

gammafit(var1)
generate x1=gammaden(e(alpha),e(beta),0,var1)
twoway (histogram var1,fraction) (scatter p1 var1)
 doesn't fit as expected..


TiA


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