powered by
specest
specest direct spectral estimation of series y using periodogram window win
specest( y, nf, e, win = c("perwinba", "perwinpa", "perwinda"), conf = 0, type = "cov" )
(n,1) vector, the ts
number of equally spaced frequencies
equal bandwidth, must be 0 <= e <0.5
string, name of periodogram window (possible: "perwinba", "perwinpa", "perwinda")
scalar, the level for confidence intervals
c("cov","cor"), area under spectrum is variance or is normed to 1.
est (nf+1,2)- or (nf+1,4)-matrix:
frequencies 0, 1/n, 2/n, ..., m/n
the estimated spectrum
the confidence bounds
# NOT RUN { data(WHORMONE) est <- specest(WHORMONE,50,0.05,win = c("perwinba","perwinpa","perwinda"),conf=0,type="cov") # }
Run the code above in your browser using DataLab