Skip to content

ENH/SUMM: Multinomial and Ordinal model for counts  #7078

Open

Description

@josef-pkt

OrderedModel and (AFAIR) MNLogit are implemented for binary choices, i.e. counts of a choice are 0 or 1, summing to 1.

If there are only categorical variables, then the data is often provided as a cross-tab or contingency table.
MNLogit and OrderedModel require that the data is expanded to observations.

Similarly for binary choices we have GLM-Binomial as count model and Logit/Probit as Models for a binary endog.

In a multinomial count model we need a 2-dim endog that can have multiple or all nonzero values.
Related: models for multivariate endog, especially compositional data.

aside: for brunner-munzel rank comparison, I wrote a separate ordinal function for counts https://www.statsmodels.org/dev/generated/statsmodels.stats.nonparametric.rank_compare_2ordinal.html

weights:

in analogy to GLM-Binomial.
If we have freq_weights, then we can reduce the data to one observation per cell, i.e. unique (endog, exog) patterns.
If we have var_weights, then we could use frequencies for unique exog, but that also requires dense 2-dim endog. This would be close to models for compositional endog.

Activity

  1. josef-pkt commented on Oct 13, 2020

    @josef-pkt
    MemberAuthor

    related stats for stratified multinomial counts

    where stratified sample comes from binning along some sort variable
    #7094 (comment)

    If the sort variable has an effect on the chisquare statistics by groups, then we would see a pattern. i.e. residual analysis but based on grouped data, e.g. we could use signed sqrt of chi2_stats as group residual similar to resid_pearson for obs.

    related

    • meta-analysis for multinomial counts
    • oneway, anova style analysis where each observation/sample is a multinomial count

    The latter might be similar to contingency table analysis, but more structure. (contingency tables are underspecified IMO)

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