glances.SSN2 | R Documentation |
glances()
repeatedly calls glance()
on several
fitted model objects and binds the output together, sorted by a column of interest.
## S3 method for class 'ssn_lm'
glances(object, ..., sort_by = "AICc", decreasing = FALSE)
## S3 method for class 'ssn_glm'
glances(object, ..., sort_by = "AICc", decreasing = FALSE)
object |
Fitted model object from |
... |
Additional fitted model objects from |
sort_by |
Sort by a |
decreasing |
Should |
A tibble where each row represents the output of glance()
for
each fitted model object.
# Copy the mf04p .ssn data to a local directory and read it into R
# When modeling with your .ssn object, you will load it using the relevant
# path to the .ssn data on your machine
copy_lsn_to_temp()
temp_path <- paste0(tempdir(), "/MiddleFork04.ssn")
mf04p <- ssn_import(temp_path, overwrite = TRUE)
# tailup only
ssn_mod1 <- ssn_lm(
formula = Summer_mn ~ ELEV_DEM,
ssn.object = mf04p,
tailup_type = "exponential",
additive = "afvArea"
)
# taildown only
ssn_mod2 <- ssn_lm(
formula = Summer_mn ~ ELEV_DEM,
ssn.object = mf04p,
taildown_type = "exponential"
)
glances(ssn_mod1, ssn_mod2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.