tidy.fbl_prophet: Extract estimated coefficients from a prophet model

View source: R/model.R

tidy.fbl_prophetR Documentation

Extract estimated coefficients from a prophet model

Description

Extract estimated coefficients from a prophet model

Usage

## 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



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
}



mitchelloharawild/fable.prophet documentation built on Oct. 17, 2023, 11:22 a.m.