glances | R Documentation |
glances()
repeatedly calls glance()
on several
fitted model objects and binds the output together, sorted by a column of interest.
glances(object, ...)
## S3 method for class 'splm'
glances(object, ..., sort_by = "AICc", decreasing = FALSE, warning = TRUE)
## S3 method for class 'spautor'
glances(object, ..., sort_by = "AICc", decreasing = FALSE, warning = TRUE)
## S3 method for class 'splm_list'
glances(object, ..., sort_by = "AICc", decreasing = FALSE, warning = TRUE)
## S3 method for class 'spautor_list'
glances(object, ..., sort_by = "AICc", decreasing = FALSE, warning = TRUE)
## S3 method for class 'spglm'
glances(object, ..., sort_by = "AICc", decreasing = FALSE, warning = TRUE)
## S3 method for class 'spgautor'
glances(object, ..., sort_by = "AICc", decreasing = FALSE, warning = TRUE)
## S3 method for class 'spglm_list'
glances(object, ..., sort_by = "AICc", decreasing = FALSE, warning = TRUE)
## S3 method for class 'spgautor_list'
glances(object, ..., sort_by = "AICc", decreasing = FALSE, warning = TRUE)
object |
A fitted model object from |
... |
Additional fitted model objects. Ignored
if |
sort_by |
Sort by a |
decreasing |
Whether |
warning |
Whether a warning is displayed when model comparisons violate certain rules.
The default is |
A tibble where each row represents the output of glance()
for
each fitted model object.
lmod <- splm(z ~ water + tarp,
data = caribou,
spcov_type = "none"
)
spmod <- splm(z ~ water + tarp,
data = caribou,
spcov_type = "exponential", xcoord = x, ycoord = y
)
glances(lmod, spmod)
glances(lmod, spmod, sort_by = "logLik", decreasing = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.