Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: st: Automatic fit of distribution
From
Maarten Buis <[email protected]>
To
[email protected]
Subject
Re: Re: st: Automatic fit of distribution
Date
Thu, 11 Jul 2013 17:58:53 +0200
On Thu, Jul 11, 2013 at 5:45 PM, Ariel Linden. DrPH
<[email protected]> wrote:
> However, it seems to me that there could be a program that
> "points the user in the right direction" after running a few simple
> diagnostics.
Here is one way that requires the -hangroot- package, available from SSC:
*------------------ begin example ------------------
sysuse nlsw88, clear
local dists normal lognormal logistic gamma gumbel ///
invgamma wald pareto exponential laplace
foreach dist of local dists {
hangroot wage, dist(`dist') name(`dist', replace) ///
title(`dist')
}
*------------------- end example -------------------
(For more on examples I sent to the Statalist see:
http://www.maartenbuis.nl/example_faq )
-- Maarten
---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany
http://www.maartenbuis.nl
---------------------------------
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/