To Burr and other experts on this topic: I tested, well rather ad-hocly the R-package multitaper
, and I succeeded getting graphical outputs. I got graphs for (a) spectrum, (b) spectrum with confidence interval and a graph for the F-test.
I have a couple of questions related to the package and the output which I hope will be commented.
- What is the F-test testing – what is the exact null-hypothesis (I suppose the null is the “white-noise” hypothesis – a flat spectral density)?
- Why is not the critical value for the F-test integrated in the F-test plot (as a horizontal line)? The package does not produce any numerical output from the test so we have no idea how “close” to reject the null-hypothesis.
- Is the significance level in the F-test optional, for example 5 or 10%?
- When you evaluate the spectrum, how do you transform frequencies to years when you have yearly data?
- It is also possible to plot the spectrum with confidence interval. What is the big deal of showing the confidence interval without relating it to the null-hypothesis?
You recommended plotting the spectrum from spec.mtm on a log scale. Is it possible to integrate the log-command in the code:
resSpec <- spec.mtm(willamette, k=10, nw=5.0, nFFT = "default", centreWithSlepians = TRUE, Ftest = TRUE, jackknife = FALSE, maxAdaptiveIterations =100, plot = TRUE, na.action = na.fail)
and how do we do it?