movemed {tsapp}R Documentation

movemed smoothes a time series by moving medians

Description

movemed smoothes a time series by moving medians

Usage

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

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

[Package tsapp version 1.0.4 Index]