calculate_trend_line_kfas: Calculate the trend line for a provided time series of...

View source: R/ts_helpers.R

calculate_trend_line_kfasR Documentation

Calculate the trend line for a provided time series of numeric values

Description

Calculate the trend line with the state space method for a provided time series (chronological order is assumed). The series are calculated with the package KFAS.

Usage

calculate_trend_line_kfas(original_series, periodicity, resting_points)

Arguments

original_series

time series with values in chrolological order

periodicity

if month, then 12. If quarter, then 4, etc. (defaul = 4)

resting_points

should analyses values be returned? (default = FALSE)

Value

Trend line

Author(s)

Pim Ouwehand, Farley Ishaak


cbsREPS documentation built on June 8, 2025, 9:38 p.m.