Skip to content

ENH: score confidence interval for GLM, discrete #2722

Open

Description

@josef-pkt

score tests are doing quite well overall, score confidence intervals are emphasized in some of the two sample proportion comparisons and are doing also reasonably well for medium sample sizes.

Calculation: see references on two sample proportions.
Essentially we are calculating two one-sided score-tests and search for the Null hypothesis parameter.
In terms of implementation and effort required this should be similar to profile likelihood confidence intervals. An efficient implementation might be able to use the offset and doesn't need to change exog in each case, if we want the confidence interval for a single parameter. (I guess changing the constant for affine restrictions would work in the constrained transformed model, but requires adjusting the constraints transformation but not of the exog, AFAICguess.)

The advantage of score confidence intervals should be that we can use robust covariance matrices to handle overdispersion or heteroscedasticity or correlation.
example http://www.inside-r.org/packages/cran/pairwiseCI/docs/pairwiseCImethodsCount
the mention dispersion problems with profile confidence interval that are handled for the specific proportional overdispersion case by QuasiPoisson (using deviance profile which I never heard but is just scaled loglikelihood, I guess).

Activity

  1. added this to the 0.8 milestone on Dec 4, 2015
  2. josef-pkt commented on Dec 5, 2015

    @josef-pkt
    MemberAuthor

    Note: AFAICS the above calculation can be used to speed up also the calculation for profile loglikelihood, likelihood ratio test and profile likelihood confidence intervals.

    Instead of redoing the full affine transformation each time, we can keep the linearly transformed exog and only need to recalculate the offset/constant part.

    It's simple for exclusion restrictions, transformed exog is just with dropped columns, but work also for any affine constraints: R @ params = r

  3. josef-pkt commented on Jan 2, 2016

    @josef-pkt
    MemberAuthor

    PR #1791 seems already to use offset shortcut for profile likelihood confidence interval.

  4. modified the milestones: 0.8, 0.9 on Aug 10, 2016
  5. josef-pkt commented on Mar 21, 2017

    @josef-pkt
    MemberAuthor

    #2041 main SUMM issue for score/LM test

  6. josef-pkt commented on Feb 29, 2020

    @josef-pkt
    MemberAuthor

    bump

    Do we get asymmetric confidence intervals for skewed distributions?

    Wald confidence intervals are symmetric for parameters (using normal or t), but we have the nonlinear link transformation for confidence intervals for the prediction (expected value, mean).

    Profile and score_confidence intervals might also be asymmetric for parameters (I guess they are in GLM for non-gaussian distribution)

    Fagerland, Morten W., and Leiv Sandvik. 2009. “Performance of Five Two-Sample Location Tests for Skewed Distributions with Unequal Variances.” Contemporary Clinical Trials 30 (5): 490–96. https://doi.org/10.1016/j.cct.2009.06.007.

    Ng, Victoria K.Y., and Robert A. Cribbie. 2017. “Using the Gamma Generalized Linear Model for Modeling Continuous, Skewed and Heteroscedastic Outcomes in Psychology.” Current Psychology 36 (2): 225–35. https://doi.org/10.1007/s12144-015-9404-0.


    aside:
    GLM QMLE literature emphasizes that mean can be consistently estimated with misspecified distribution.
    Optimization (IRLS) and the mean parameter estimates only depends on mean and variance functions.

    Question: How does the distributional assumption, i.e. family, affect inference in small to medium samples?
    e.g. do we get inference that takes the skewness of a family into account, and not just mean and variance?

    Similar to the hypothesis test literature:
    What is the best GML-QMLE way to get statistics, like hypothesis tests, confidence intervals. for skewed and other non-normal data?

  7. josef-pkt commented on Feb 23, 2022

    @josef-pkt
    MemberAuthor

    bump again

    I'm looking again at two sample comparison for count data like Poisson and NegBin. #8138
    With robust cov_type or excess dispersion in score_test, we would have robust intervals (if we can implement those).

  8. modified the milestones: 0.9, 0.15 on Dec 1, 2022
  9. josef-pkt commented on Feb 13, 2023

    @josef-pkt
    MemberAuthor

    The dev code for the basic score confint (and LR confint) is in #4798 (comment)

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