Skip to content

GLM, discrete overdispersed cov_params (robust) #1750

Open

Description

@josef-pkt

specific issue for adding a scale parameter to GLM and discrete models.

related
#1095 QMLE
#1158 summary issue for robust covariances

IIRC, there are more comments and references spread over different issues

reference among several others

Cameron Trivedi Microeconometrics section 5.7.4 on Generalized Linear Models
explicitly says
common estimate for scale factor is sum of squared pearson residuals divided by (nobs - k_vars) (i.e. divided by df_resid)

I got slightly strange numbers when I tried this a while ago, and find the equivalent result in Stata. (maybe because I looked at Stata's poisson and not glm)

Note: our GLM has a hidden, untested (?) option to choose the calculation for the scale parameter.

Activity

  1. josef-pkt commented on Jun 16, 2014

    @josef-pkt
    MemberAuthor

    Wooldridge cross-section equation (13.91) p. 513 also uses "Pearson dispersion parameter"

  2. josef-pkt commented on Aug 23, 2014

    @josef-pkt
    MemberAuthor

    implementation detail:

    I added an option for generic rescaling of the covariance in the generic version, scaling_factor
    This could be used to rescale the nonrobust covariance by the scale in GLM and discrete Poisson.
    However, this is currently not possible because 'nonrobust' doesn't go through the generic sandwich functionget_robustcov_results`.

    e.g. to compare with GEE cov_naive which is the scaled traditional covariance matrix, which can be over or under dispersed in Poisson.

  3. josef-pkt commented on May 17, 2020

    @josef-pkt
    MemberAuthor

    scale option is available. I did some examples, but AFAIR we don't have unit test for quasi-xxx
    I don't find any good issue with example right now. (should be in some notebook of mine)

    more recent issue #4942, #5277, ...

    https://stackoverflow.com/questions/61856088/python-statsmodels-equivalent-to-r-quasibinomial-glm

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions