[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Plots : Gamma density
-gammafit- and -pgamma- are user-written
commands for two-parameter gamma distributions
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.
> I want to plot an histogram with gamma density
> pgamma is showing perfect fit..
> 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: