[R] spectrum

Andreas Pauling pauling at giub.unibe.ch
Thu Jan 22 18:00:44 CET 2004

Dear R users

I have two questions about estimating the spectral power of a
time series:

1) I came across a funny thing with the following code:


The first plot displays the frequencies ranging from 0 to 6
whearas the second plot displays the same curve but with
frequencies between 0 and .5 although it is based on the same
data (length(co2)=468). Why does the selection (co2[1:468])
determine the vector of frequencies and plot it obviously

Generally, is it possible to choose the vector of frequencies at
which the spectral density is estimated and plotted?

2) How can the significance of the peaks be tested?

Thanks for any help!!


This mail was sent through IMP at http://mail.unibe.ch

More information about the R-help mailing list