You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ENH/SUMM: Multinomial and Ordinal model for counts #7078
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.
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.
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)
Activity
josef-pkt commentedon Oct 13, 2020
related
statsfor stratified multinomial countswhere 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
The latter might be similar to contingency table analysis, but more structure. (contingency tables are underspecified IMO)