Comparing regression models: Different Tests #183
Replies: 6 comments 1 reply
-
Maybe we should have a function, in |
Beta Was this translation helpful? Give feedback.
-
I'm wondering if we should really call this |
Beta Was this translation helpful? Give feedback.
-
yeah I thought about it, and was hesitating between Pros of
Cons:
Pros of
Cons:
|
Beta Was this translation helpful? Give feedback.
-
Maybe we should indeed think of functions that compute model quality indices, that start with |
Beta Was this translation helpful? Give feedback.
-
Se here: https://easystats.github.io/performance/reference/index.html We would have the section
and then maybe
or something like that, with |
Beta Was this translation helpful? Give feedback.
-
Yes, and under "Comparing Models" there would be two categories like "descriptive comparison" or "relative comparison", which is what |
Beta Was this translation helpful? Give feedback.
-
We can discuss here potential features regarding tests to compare different models.
Nested models
Two regression models are called nested if one contains all the predictors of the other, and some additional predictors.
The
anova()
function by default.Created on 2020-12-28 by the reprex package (v0.2.1)
Created on 2020-12-29 by the reprex package (v0.3.0)
Created on 2020-12-28 by the reprex package (v0.2.1)
Non-nested models
The idea of the Cox test is the following: if the first model contains the correct set of regressors, then a fit of the regressors from the second model to the fitted values from first model should have no further explanatory value. But if it has, it can be concluded that model 1 does not contain the correct set of regressors.
Created on 2020-12-28 by the reprex package (v0.2.1)
The idea of the J test is the following: if the first model contains the correct set of regressors, then including the fitted values of the second model into the set of regressors should provide no significant improvement. But if it does, it can be concluded that model 1 does not contain the correct set of regressors. Hence, to compare both models the fitted values of model 1 are included into model 2 and vice versa. The J test statistic is simply the marginal test of the fitted values in the augmented model.
Created on 2020-12-28 by the reprex package (v0.2.1)
The encompassing test fits an encompassing model which contains all regressors from both models such that the two models are nested within the encompassing model. A Wald test for comparing each of the models with the encompassing model is carried out by wald test.
Created on 2020-12-28 by the reprex package (v0.2.1)
See also
nonnest2::icci()
that computes CI around the difference of AIC and BIC, with the caveat that it only works 1) if models are non-nested and 2) if models are distinguishable (as shown by as significant Vuong's test).Created on 2020-12-28 by the reprex package (v0.2.1)
Resources:
Beta Was this translation helpful? Give feedback.
All reactions