robsplinedecomp: 'robsplinedecomp' decomposes a vector into trend, season and...

Description Usage Arguments Value Examples

View source: R/decomp.r

Description

robsplinedecomp decomposes a vector into trend, season and irregular component by robustified spline approach; a time series attribute is lost

Usage

1
robsplinedecomp(y, d, alpha, beta, Plot = FALSE)

Arguments

y

the series, a vector or a time series

d

seasonal period

alpha

smoothing parameter for trend component (the larger alpha is, the smoother will the smooth component g be)

beta

smoothing parameter for seasonal component

Plot

logical, should a plot be produced?

Value

out list with the elements trend, season, residual

Examples

1
2
data(GDP) 
out  <- robsplinedecomp(GDP,4,2,10,Plot=FALSE) 

tsapp documentation built on Oct. 30, 2021, 5:08 p.m.

Related to robsplinedecomp in tsapp...