That FAQ is unnecessary given the -betaden()- function.
Hence
. ssc inst betafit
. ssc inst qbeta
. ssc inst pbeta
. betafit myvar
. gen fitteddensity = betaden(e(alpha), e(beta), myvar)
...
Nick
[email protected]
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Nick Cox
> Sent: 02 February 2004 09:54
> To: [email protected]
> Subject: st: RE: Plotting several densities
>
>
> I don't know what you mean by "directly" here.
>
> -betafit- on SSC does maximum likelihood fits.
>
> You can calculate the density to overlay on a histogram
> (N.B. http://www.stata.com/support/faqs/stat/beta.html)
> but it's easier to work with -qbeta- or -pbeta- from
> SSC in my experience.
>
> Nick
> [email protected]
>
> Naji Nassar
> >
> > Having a continuous variable, I'd like to compare graphically its
> > distribution to wellknown density (Beta)
> > The Beta parameters can be determined either directly or upon
> > moments values
<<winmail.dat>>