movemed: 'movemed' smoothes a time series by moving medians

Description Usage Arguments Value Examples

View source: R/decomp.r

Description

movemed smoothes a time series by moving medians

Usage

1
movemed(y, q)

Arguments

y

the series, a vector or a time series

q

scalar, span of moving median

Value

g vector, smooth component

Examples

1
2
3
data(BIP)
g <- movemed(GDP,12) 
 plot(GDP) ; t <- seq(from = 1970, to = 2009.5,by=0.25) ; lines(t,g,col="red")  

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

Related to movemed in tsapp...