[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: RE: GLLAMM error: log-likelihood cannot be computed

From   "Nick Cox" <>
To   <>
Subject   RE: st: RE: GLLAMM error: log-likelihood cannot be computed
Date   Mon, 8 Oct 2007 21:09:23 +0100

So, a log of 0 sometimes means that the data are 1 
and sometimes that they are 0? 

There's no neat solution to this one. 


Leny Mathew
> Thanks Nick. For the purposes of the graph, I created a new variable
> with the zeros changed to 1 and then took the log; effectively setting
> them as zero in the log graph. I guess I could scale the variable by a
>  very small value and then take the log also.
> On 10/8/07, Nick Cox <> wrote:
> > -gllamm- I leave to experts on it.
> >
> > -glm- produces predictions on the scale of the response,
> > whatever the link. It can also be quite sensible to use a
> > log scale for subsequent graphing. Indeed I've found
> > log link and log scale for graphs invaluable in some cases.
> > The results are not equivalent to transforming the response
> > because the log of the mean is not in general the mean
> > of the logs (and similarly for any nonlinear transformation).
> >
> > However, you can't show zeros on a log scale. If you
> > try this, Stata just gives you a dopey graph. That's
> > its way of saying "Isn't that rather a silly thing
> > to ask for?"

*   For searches and help try:

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