summary.bridge | R Documentation |
bridge
objectThis method is summarizes the bridge model.
## S3 method for class 'bridge'
summary(object, ...)
object |
A |
... |
Additional arguments to be passed to the summary function. Ignored at the moment. |
The function summary
is used to obtain and print a summary of the
results.
library(bridgr)
# Example usage
target_series <- suppressMessages(tsbox::ts_tbl(data.frame(
time = seq(as.Date("2020-01-01"), as.Date("2022-12-01"), by = "quarter"),
value = rnorm(12)
)))
indic_series <- suppressMessages(tsbox::ts_tbl(data.frame(
time = seq(as.Date("2020-01-01"), as.Date("2023-01-01"), by = "month"),
value = rnorm(37)
)))
bridge_model <- suppressMessages(bridge(
target = target_series,
indic = indic_series,
indic_predict = "mean",
indic_aggregators = "mean",
indic_lags = 2,
target_lags = 1,
h = 1
))
# Summarize the information in the bridge model
summary(bridge_model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.