Description Usage Arguments Value Examples
This function is used to compare two models. The output can be interpreted model compared to the other. Instead of using marginal likelihoods this function utilizes either the Watanabe-Akaike Information Criterion or the Leave-One-Out Cross-Validation Information Criterion. The default is to use LOO-IC. See the IC() function for more information on how these are calculated. Models with a larger evidence ratio are favored over the alternative. Posterior model probabilities are also provided for each model to aid interpretation.
1 | evidenceRatio(modelA, modelB, method = "LOO")
|
modelA |
the first model |
modelB |
the second model |
method |
one of "LOO" (the default) or "WAIC" |
a data frame
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.