View source: R/compareModels.R
coefChange | R Documentation |
Compare two logistic/probit regression coefficient using different methods.
coefChange(reduced, full, method = "ystand", ratio.type = "perc", R = 1) compareModels(reduced, full, method = "ystand", ratio.type = "perc")
R |
Integer. If larger than |
reduced |
The reduced model. |
full |
The full model |
method |
Character. The method used to compare coefficients (see details). |
ratio.type |
Character specifying how to compare the coefficients. This
should be one of |
The compareModels
function compares the coefficients of two logistic/probit
regressions using different methods.
If method="naive"
, the coefficients are compared without any transformation. This method is mainly
provided to highlight the effect of other methods.
If method="ystand"
, y-standardization is used to compare the coefficients.
If method="ape"
, Coefficients change are computed using average partial effects.
Finally, if method="khb"
, the KHB method is used to compare the coefficients accross models.
The coefChange
function only compute the change of coefficients using either
the percentage of change or the ratio of change. It can also compute
confidence intervals of this change using bootstrapping.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.