Statalist The Stata Listserver

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

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

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

Jeph Herrin <> 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

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
*   For searches and help try:

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