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

st: RE: RE: Plots : Gamma density


From   "Naji Nassar (MIReS)" <naji.nassar@mires.fr>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Plots : Gamma density
Date   Tue, 22 Jun 2004 11:07:55 +0200

Thanks Nick for the axis scales..
It worked perfectly

Naji
-----Message d'origine-----
De : owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu]De la part de Nick Cox
Envoyé : mardi 22 juin 2004 10:58
À : statalist@hsphsun2.harvard.edu
Objet : st: RE: Plots : Gamma density


-gammafit- and -pgamma- are user-written 
commands for two-parameter gamma distributions
from SSC. 

You don't say what p1 is here, perhaps
a typo for x1. 

However, don't use the -fraction- option. The 
defaulty -density- option for -histogram- 
gives the natural scale for comparing with 
a superimposed density function. 

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

Naji Nassar
> 
> 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..

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

<<attachment: winmail.dat>>




© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index