spec.taper(x, p=0.1)
The chapter "Analyzing Time Series" of the S-PLUS Guide to Statistical and Mathematical Analysis.
# taper 10% of each end of the housing start data hstaper <- spec.taper(hstart)hstart3 <- tsmatrix(hstart, hstart, hstart) # replicate hstart three times # taper 10%, 20% and 40% of each end hstaper3 <- spec.taper(hstart3, c(.1, .2, .4))
# the split-cosine-bell window for p=.25 tsplot(spec.taper(rep(1, 100), p=.25))