Statalist The Stata Listserver

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

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

From   Jeph Herrin <>
Subject   st: -glm- vs -xtgee,corr(independent)-
Date   Mon, 21 Aug 2006 16:33:48 -0400

Stata 9.2, updated.

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)

One feature is that the dependent variable is a proportion, not 0/1;
the -glm- model is the 'recommended' approach in this case:

My goal is to reproduce the -glm- model with -xtgee-, and then specify
a different error structure. I get the same problem with or without
the -robust- option.


*   For searches and help try:

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