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" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
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 
n.j.cox@durham.ac.uk 

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Nick Cox
> Sent: 02 February 2004 09:54
> To: statalist@hsphsun2.harvard.edu
> 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 
> n.j.cox@durham.ac.uk 
> 
> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index