Statalist The Stata Listserver


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

Re: st: -glm- vs -xtgee,corr(independent)-


From   [email protected] (Yulia Marchenko, StataCorp)
To   [email protected]
Subject   Re: st: -glm- vs -xtgee,corr(independent)-
Date   Mon, 21 Aug 2006 19:53:28 -0500

Jeph Herrin <[email protected]> asks:
> I'm trying to understand why, contrary to the documentation, these two do not
> give the same results:
>
> . glm   rate exposed, family(binomial) link(logit) robust
> . xtgee rate exposed, family(binomial) link(logit) robust /*
>                         */corr(independent) i(id)
>
> The -glm- converges nicely, the -xtgee- gives an error:
>
>	estimates diverging (missing predictions)
>	r(430);
>
> One feature is that the dependent variable is a proportion, not 0/1;

For the parameter estimates from -glm- to be equivalent to those from -xtgee-,
the -irls- option needs to be specified with -glm-.  This is because, by
default, -glm- uses maximum likelihood optimization to obtain parameter
estimates.

I would like to see Jeph's data to determine why -xtgee- did not converge.  I
have emailed him privately and will report any conclusions to the list.

 -- Yulia
[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