Skip to content
Prev 155870 / 398502 Next

Odp: Help with 'spectrum'

Hi

r-help-bounces at r-project.org napsal dne 09.09.2008 18:44:34:
S-PLUS.
(-frequency(x)/2,
0.5]
this
scaled by
day.
output
scaled
array
a
Well, although I am not an expert in this matter I try to explain my 
humble understanding of spectrum results.

sss<-spectrum(sunspots)
sss$freq[which.max(sss$spec)]
[1] 0.09166667
1/sss$freq[which.max(sss$spec)]
[1] 10.90909

you can see that maximum of spec value is for this time series at freq 
0.09 and 1/0.09 is almost eleven. Knowing that sunspots have periodicity 
11 years I assume that for each series I can get an information about its 
periodicity by 1/freq. E.g. if your series is days 1/freq means period in 
days.

Regards
Petr
http://www.R-project.org/posting-guide.html