tidy.fbl_prophet: Extract estimated coefficients from a prophet model

Description Usage Arguments Value Examples

View source: R/model.R

Description

Extract estimated coefficients from a prophet model

Usage

1
2
## S3 method for class '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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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
}

fable.prophet documentation built on Aug. 20, 2020, 5:06 p.m.