Skip to content

GEE result statistics, diagnostics #929

Open

Description

@josef-pkt

PR #928 will add GEE for generalized linear models to statsmodels.

currently we are missing some post-estimation results
Stata http://www.ats.ucla.edu/stat/stata/library/gee.htm
R gee http://www.inside-r.org/packages/cran/gee/docs/summary.gee (I don't see what post-estimation results they provide)

  • goodness of fit measures: Stata uses chi2 wald statistic, and Hausman’s specification test
  • testing of linear hypothesis: need generic Wald test (as complement to f_test and t_test)
    Stata has lincom linear hypothesis tests, and test Wald tests separately, and equivalents for non-linear hypothesis (I don't know yet what's the difference)
  • margins: Stata also has margins, which we have in discrete but not yet in genmod

I don't know what residual diagnostics, influence and outlier measures are available.
genmod.GLM has different kinds of residuals, but no supporting influence and outlier measures and tests yet.

Activity

  1. josef-pkt commented on Jun 30, 2013

    @josef-pkt
    MemberAuthor

    spec_hausman test is in GMM in the sandbox (I don't know what's the status and how it is used for GEE)

  2. josef-pkt commented on Jun 30, 2013

    @josef-pkt
    MemberAuthor

    related: The stata description for GEE lists the equivalent models for special cases of GEE
    http://www.stata.com/features/generalized-estimating-equations/
    It also mentions where the bse results differ.

    I think this could also be useful for consistency testing across models, especially GEE with independent correlation structure and GLM.

  3. kshedden commented on Jul 1, 2013

    @kshedden
    Contributor

    I added some tests for the very basic equivalences between genmod and GEE (OLS, logistic, and Poisson regression with independence covariances). The standard errors should not agree since GEE uses the so-called robust estimates based on the sandwich estimator and observed within-cluster dependence.

  4. josef-pkt commented on Jul 2, 2013

    @josef-pkt
    MemberAuthor

    From the SAS page

    Starting in SAS 9.2, deletion diagnostics and plots are provided for GEE models to assess the effects of deleting entire clusters.

    The Stata manual mentions jacknife standard errors (I didn't check the description yet), but from the SAS description it looks like we should focus on leave one group out for the diagnostics.

  5. josef-pkt commented on Jul 2, 2013

    @josef-pkt
    MemberAuthor

    A general comment, after reading through the description of GEE in Stata:

    Is GEE fully parametric, or When is GEE fully parametric?

    Stata reports in some cases the deviance in the summary printout, and uses by default the standard standard errors and the robust sandwich errors only as an option.
    Given that we use the family we have the assumption of the likelihood functions.

    However, I thought the analog to GEE is the generalized method of moments where we only assume that some moment conditions (estimating equations) hold, and don't require a full likelihood. And we use the robust sandwich covariance because we don't have a fully specified and correctly specified likelihood.

    Possible (guessing):
    Since in the exponential family we get an expression for the mean equation, we are matching the mean/expectation in the estimation without requiring the full parametric assumption on the likelihood. (Similar to OLS versus normal distribution for linear model). Whether we have the fully parametric model depends on the interpretation (using likelihood ratio test for example) and on the adjustments to the variance estimator.

    on robustness to misspecification:
    The vce(robust) option of xtgee, on the other hand, requires that the model correctly specify the mean and the link function when the noncanonical link is used. (Stata)

  6. josef-pkt commented on Oct 2, 2013

    @josef-pkt
    MemberAuthor

    Reference

    QQ-plot with Pearson, Anscombe and Deviance residuals:
    Sohee Oh, K.C. Carriere, Taesung Park, Model diagnostic plots for repeated measures data using the generalized estimating equations approach, Computational Statistics & Data Analysis, Volume 53, Issue 1, 15 September 2008, Pages 222-232, ISSN 0167-9473, http://dx.doi.org/10.1016/j.csda.2008.07.022.
    (http://www.sciencedirect.com/science/article/pii/S0167947308003526)

    with generalized residuals:
    Pardo, M. C., and R. Alonso. 2012. “A Generalized Q–Q Plot for Longitudinal Data.” Journal of Applied Statistics 39 (11): 2349–2362. doi:10.1080/02664763.2012.710896.

  7. added this to the 0.10 milestone on Jun 2, 2017
  8. modified the milestones: 0.10, 0.15 on Jan 4, 2023
  9. josef-pkt commented on Jan 4, 2023

    @josef-pkt
    MemberAuthor

    a recent article

    Crisci, Anna. “A Note on Regression Diagnostics for Generalized Estimating Equations: Empirical Study on Environmental Disclosure Determinants.” Journal of the Operational Research Society 0, no. 0 (March 24, 2022): 1–7. https://doi.org/10.1080/01605682.2022.2053310.

    I didn't read anything, but has cluster leverage/hat matrix and cooks distance
    and QIC(Quasilikelihood under the Independencemodel Criterion)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions