[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From   Maarten buis <>
To   stata list <>
Subject   RE: st: GLLAMM
Date   Tue, 16 Feb 2010 17:55:43 +0000 (GMT)

--- Alberto R. Osella wrote:
> I'm trying to fit a GLLAMM to data <snip> but there are 
> problems with the convergence.

Could be many things. One thing that struck me was the 
line: -gen lvita = log(vita+0.001)- in your code. This 
can very easily turn your zeros in big outliers, which 
can cause trouble with convergence. For example in the
example code below you can see that the zeros are put
way outside the normal range of the data.

*----------- begin example -------------
sysuse nlsw88, clear
gen ln_tenure = ln(tenure + .001)
spikeplot ln_tenure
*------------ end example --------------

Hope this helps,

PS. formatted text (rich text, xml, html) don't format
well on the list. Your message looks for example like: <
archives/statalist.1002/date/article-721.html> For that
reason the Statalist FAQ askes everyone to post their
messages as plain text. See number of 4 of:

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen


*   For searches and help try:

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