Skip to content

SUMM/ENH: extension to OrderedModel, ordinal cumulative link models #7069

Open

Description

@josef-pkt

I will merge OrderedModel with core functionality in PR #7035

R package ordinal has a good article, based on very brief skimming
https://cran.r-project.org/web/packages/ordinal/vignettes/clm_article.pdf
e.g. discussion for prediction intervals
https://stats.stackexchange.com/questions/261903/plot-predicted-values-from-a-cumulative-link-model-clm-ordinal

current unit test are written using MASS:polr results.

possible extensions

  • internal

    • make incremental exp parameterization optional
    • analytical derivatives at least with respect the exog or params_exog, e.g. score_factor, should eventually lead to score_test
    • subclass standard classes instead of GenericLikelihood, e.g. DiscreteModel
  • interpretation

    • plots, regression, effects plot (idea: add argmax, i.e. predicting the discrete choice as plot element)
    • margins margeff
  • diagnostics

    • plots: I started with a kind of RESET plot, i.e. observed versus fitted
    • specification and diagnostic tests: no idea yet. We need some kind of link or RESET test
    • GOF with surrogate variable, I briefly skimmed abstracts, and there is an R package (needs references)
  • other extensions

(Greene and .... have a lot more, but that goes much further than just extensions to OrderedModel)

(*) my guess is that the linearity assumption is pretty restrictive, e.g. middle categories might need more nonlinearities.
Agresti categorical book has a short section on dispersion.

Activity

  1. josef-pkt commented on Sep 30, 2020

    @josef-pkt
    MemberAuthor

    some older references in #807 (comment)

  2. josef-pkt commented on Sep 30, 2020

    @josef-pkt
    MemberAuthor

    related: multinomial samples in stats,
    e.g.
    #4165 polychoric correlation which sounds like a multivariate multinomial (?) or correlated multinomial samples
    (I don't remember)
    #2931 the usual hypothesis tests, confint, ... for multinomial samples, we have simultaneous confint but not much else.
    and other multinomial related issue

  3. josef-pkt commented on Oct 1, 2020

    @josef-pkt
    MemberAuthor

    SAS includes score_test in proc Logistic, including score null (against constant only model)

    https://documentation.sas.com/?docsetId=statug&docsetTarget=statug_logistic_examples03.htm&docsetVersion=14.3&locale=en

    e.g https://stats.idre.ucla.edu/sas/output/ordered-logistic-regression/

            Testing Global Null Hypothesis: BETA=0
    Testp                 Chi-Squareq       DFq     Pr > ChiSqq
    Likelihood Ratio        31.5604        3         <.0001
    Score                   28.9853        3         <.0001
    Wald                    29.0022        3         <.0001
    

    SAS has cumulative link models also in proc GENMOD https://documentation.sas.com/?docsetId=statug&docsetTarget=statug_genmod_details26.htm&docsetVersion=14.3&locale=en
    (I haven't checked what post estimation results are available for this)

  4. josef-pkt commented on Oct 1, 2020

    @josef-pkt
    MemberAuthor

    univariate residual for diagnostics

    Liu, Dungang, and Heping Zhang. 2018. “Residuals and Diagnostics for Ordinal Regression Models: A Surrogate Approach.” Journal of the American Statistical Association 113 (522): 845–54. https://doi.org/10.1080/01621459.2017.1292915.

    older: I haven't looked yet: standard pearson resid in McCullagh, Nelder GLM book

  5. josef-pkt commented on Oct 2, 2020

    @josef-pkt
    MemberAuthor

    aside: A long time ago, I wrote a GMM class for distributions, application to income distributions, given as multinomial counts.
    It doesn't fit the standard GMM pattern and I never cleaned it up or finished it. (still in sandbox).
    We could see if we can extend this to a GMM analogue of a multinomial or ordinal model.

    add freq_weights, see #7078

  6. josef-pkt commented on Jan 26, 2021

    @josef-pkt
    MemberAuthor

    I think when writing the PR I only checked inheriting for LikelihoodModel directly, which fails with several API inconsistencies.

    I should have tried subclassing from discrete DiscreteModel and results class. Those follow a similar pattern as GenericLikelihoodModel (and the design of GenericLikelihoodModel was actually based on DiscreteModel)

    I guess the main missing parts when inheriting from DiscreteModel are the derivatives, numerical derivative for score and hessian.

  7. josef-pkt commented on Jun 4, 2021

    @josef-pkt
    MemberAuthor

    cross link #4908 also includes a discussion of ordinal, proportional-odds model with a notebook in
    #4908 (comment)

  8. josef-pkt commented on Dec 21, 2022

    @josef-pkt
    MemberAuthor

    link to "Resources for Ordinal Regression Models"
    https://www.fharrell.com/post/rpo/

    interesting detail "Equivalence of Wilcoxon Statistic and Proportional Odds Model"
    https://www.fharrell.com/post/powilcoxon/

    (I didn't read those)

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