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

st: RE: RE: Plotting several densities


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: Plotting several densities
Date   Mon, 2 Feb 2004 10:16:16 -0000

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




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