bwadap.ts: Adaptive bandwidth choice for infinite order spectral density...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/bwadap.R

Description

Adaptive bandwidth choice for spectral density estimation with infinite order flat-top kernels.

Usage

1
2
## S3 method for class 'ts'
bwadap(x, Kn = 5, c.thresh = 2, ...)

Arguments

x

A univariate time-series.

Kn

Tuning parameter Kn discussed in Politis (2003). Roughly, the number of lags the autocorrelation function must stay below the threshold determined by c.thresh.

c.thresh

The bandwidth is chosen by looking for the first time the autocorrelation function drops below c.thresh*sqrt(log(n,10)/n) and stays below that level for Kn lags.

...

Currently unimplemented.

Details

Returns a smoothing parameter l; all lags after lag l will be down-weighted by the kernel's taper. All kernels in this package are scaled to use roughly the same smoothing parameter.

Value

Smoothing parameter l.

Author(s)

Timothy L. McMurry

References

Politis, D. N. (2003). Adaptive bandwidth choice. Journal of Nonparametric Statistics, 15(4-5), 517-533.

See Also

bwadap, bwadap, bwplot, bwplot.ts

Examples

1
2
3
4
x <- arima.sim(list(ar=.7, ma=-.3), 100)
bwplot(x)
l <- bwadap(x)
plot(iospecden(x, l), type="l")

Example output



iosmooth documentation built on May 1, 2019, 10:30 p.m.

Related to bwadap.ts in iosmooth...