bwplot.ts: Bandwidth plot for spectral density estimation

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

View source: R/bwplot.r

Description

Plots the absolute autocorrelation function at lags 0 to lag.max.

Usage

1
2
## S3 method for class 'ts'
bwplot(x, lag.max = NULL, c.thresh = 2, ...)

Arguments

x

A univariate time series.

lag.max

The maximum lag shown on the plot.

c.thresh

The smoothing parameter is chosen by looking for the first time the sample autocorrelation function drops below c.thresh*sqrt(log(n,10)/n) and stays below that level for a distance of Kn.

...

Further arguments passed on to plot.acf.

Details

Produces a plot that is helpful in choosing the bandwidth for infinite order flat-top spectral density estimates. The smoothing parameter should be chosen to let the large small lag autocorrelations pass unpreturbed while damping out smaller higher lag correlations.

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.ts, bwplot, bwplot.numeric

Examples

1
2
3
4
5
6
set.seed(123)
x <- arima.sim(list(ar=.7, ma=-.3), 100)
bwplot(x)
bwadap(x)
# Choose a smoothing parameter of 3
plot(iospecden(x, l=3), type="l")

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

Related to bwplot.ts in iosmooth...