Learn R Programming

fable.prophet (version 0.1.0)

tidy.fbl_prophet: Extract estimated coefficients from a prophet model

Description

Extract estimated coefficients from a prophet model

Usage

# S3 method for fbl_prophet
tidy(x, ...)

Arguments

x

An object to be converted into a tidy tibble::tibble().

...

Additional arguments to tidying method.

Value

A tibble containing the model's estimated parameters.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
if (requireNamespace("tsibbledata")) {
library(tsibble)
library(dplyr)
fit <- tsibbledata::aus_production %>%
  model(
    prophet = prophet(Beer ~ season("year", 4, type = "multiplicative"))
  )

tidy(fit) # coef(fit) or coefficients(fit) can also be used
}
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab