Statalist


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

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


From   "Leny Mathew" <[email protected]>
To   [email protected]
Subject   Re: st: RE: GLLAMM error: log-likelihood cannot be computed
Date   Mon, 8 Oct 2007 15:58:39 -0400

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 <[email protected]> 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?"
>
> Nick
> [email protected]
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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