Skip to content

ENH: Move compare_lr_test to LikelihoodModelResults - #2641

Open
saketkc wants to merge 1 commit into
statsmodels:mainfrom
saketkc:fix_lr_test
Open

saketkc wants to merge 1 commit into
statsmodels:mainfrom
saketkc:fix_lr_test

Conversation

@saketkc

@saketkc saketkc commented Oct 6, 2015

Copy link
Copy Markdown
Contributor

See #2436
Closes #2440

Part of my unfinished GSoC(another PR pending)

Comment thread statsmodels/base/model.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs a one line description for the doc rendering, (doc standard even if the function doesn't go into the sphinx docs)

@josef-pkt

Copy link
Copy Markdown
Member

This needs unit tests, if possible against R, e.g. for GLM and for MixedLM

Otherwise, I think it's fine. It's a plain version, that doesn't fix nuisance parameters like scale across models, but I still don't know how to implement that generically.
(Two cases: 1) parameter estimates are independent of nuisance parameter, e.g. scale GLM/OLS, we could just use the argument in loglike. 2) nuisance parameter affects the mean parameters, then we would have to reestimate with a fixed nuisance parameter, which would end up being more similar to the structure of multi model comparison in anova_lm
Possibly still buggy: loglike of normal models is defined as concentrated likelihood with MLE scale)

@saketkc

saketkc commented Oct 6, 2015

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants