Skip to content
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

Likelihood ratio test to compare Linear[Mixed]Model #491

Closed
kleinschmidt opened this issue Mar 23, 2021 · 2 comments · Fixed by #508
Closed

Likelihood ratio test to compare Linear[Mixed]Model #491

kleinschmidt opened this issue Mar 23, 2021 · 2 comments · Fixed by #508
Assignees

Comments

@kleinschmidt
Copy link
Member

Likelihood ratio tests can be used to assess the suitability of random effects terms, but it's currently not possible to directly compare a LinearModel and a LinearMixedModel to assess the suitability of no random effects vs. some random effects. This would require adding methods to determine whether a LinearModel is nested within a LinearMixedModel and maybe a specialized test method to make sure you're getting the right likelihood value (e.g. can't use the deviance since the baseline is different for the two).

@palday palday self-assigned this Mar 23, 2021
@palday
Copy link
Member

palday commented Mar 23, 2021

@dmbates Do you have any philosophical objections to this? Practically, the biggest thing is that we need to look at the log likelihoods directly and not the deviances (LinearModel takes the additive constant for the saturated model into account unlike LinearMixedModel).

@dmbates
Copy link
Collaborator

dmbates commented Mar 23, 2021

Nope. No philosophical objections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants