View source: R/bridge-extract-comparison.R
| mellio_compare | R Documentation |
Builds a hierarchical-regression comparison payload from two or more
nested model objects. Unlike mellio_payload(anova(m1, m2)), this keeps the
original models available so Mellio can report model R^2, adjusted R^2,
Delta R^2, and the nested-model F-change.
mellio_compare(..., labels = NULL, .call = NULL)
... |
Nested model objects, usually |
labels |
Optional model labels. Defaults to |
.call |
Optional call string for provenance / display. |
A mellio_payload object.
Other R bridge:
mellio_addin_send(),
mellio_capture(),
mellio_open(),
mellio_payload(),
mellio_to_json(),
print.mellio_payload()
m1 <- lm(mpg ~ wt + hp, data = mtcars)
m2 <- lm(mpg ~ wt + hp + cyl, data = mtcars)
p <- mellio_compare(m1, m2)
p$type
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.