sospecden(x, l, kernel = c("Trap", "Rect", "SupSm"), x.points = seq(-pi, pi, len = 200))
bwadap.ts
.
x.points
is set to NULL
, sospecden
will return a function which interpolates between the estimated points.
x.points
is not NULL, the function returns a list of length 2
is not NULL, the function returns a list of length 2If x.points
is NULL, the function returns the estimated spectral density function rather than its values.
Politis, D. N. (2003). Adaptive bandwidth choice. Journal of Nonparametric Statistics, 15(4-5), 517-533.
bwadap.ts
, bwplot.ts
x <- arima.sim(list(ar=.7, ma=-.3), 100)
bwplot(x)
plot(sospecden(x), type="l")
Run the code above in your browser using DataLab