-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Dcm logit rebased2 #8120
base: main
Are you sure you want to change the base?
ENH: Dcm logit rebased2 #8120
Conversation
* first draft of CLogit based on TryCLogit(sandbox-statsmodels:runmnl.py)
* add df_model and df_ resid. * add summary. * deal with names and number of exogs. * add 2 examples: one alternative specific varible with and without alternative-specific constants. * some clean.
* first draft of results class. * added analytical score/gradient, hessian and Jacobian. * examples moved to another file.
* start params estimated from the standard logit, * data entry by dictionary, data handle inside class, * work with alternative specific and/or individual/case specific variables.
* new in summary: method, iterations, elapsed time, num. cases, num. and frequencies of alternatives. Note than from previous commit, when a specific alternative variable isn't present on all utilities, no longer need to do previous work like: df ['vrble_alternative'] = df ['variable'] * (choice_index == 0)
ordered when choice set are strings.
* new on summary: LL-Null, Pseudo R-squ., LLR p-value, Likelihood ratio test, AIC. * added fitted_values.
…lete prints inside classes. * New tests: bse, llf, llnull, aic.
for params, results cross check with biogeme, new tests for Likelihood ratio test, score and predic values.
…rent from the optimum. Load forgotten files in last commit: clogit_predict.csv and Biogeme results.
…fied, prediction table. * added notes for marginal effect.
* specification random Coefficients. * simulated maximum likelihood. * fixed and/or random coefficients.
* replicate R results (with mean and sd fixed)
…mation procedure. * added examples with generic and alternative specific coef. * tested against R: more slow but good results.
move example to module, add smoke test
Hello @josef-pkt! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:
|
notebook has output in it. This might need a lot of squashing. |
This pull request introduces 8 alerts when merging 06890fe into 152e27d - view on LGTM.com new alerts:
|
unit tests error on import
large number of style, pep-8 violations |
These are long gone. |
no code update since 2014 is a long time (this was originally written for python 2) |
rebased version of #1605
no additional changes
no merge conflicts, but likely outdated in inherited parts, no changes in PR since 2014
(I'm not planning to work on this soon, but want to have it closer to current code and wanted to see if there are serious merge conflicts)