[R] help! - spectral analysis - spec.pgram

vikrant vikrant.shimpi at tcs.com
Fri May 14 06:03:26 CEST 2010


series <-c(0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10 
,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10) 


Here ain this example after period 4 the pattern repeats. So we can say that
the above series have a period of  4.

Now my question is by using the  function
spec.pgram(series, log="no") 

we will get a graph of power vs frequency. Correct me if I am wrong.



Now from this graph I want to determine the period of seasonality. How
should I determine it??


-- 
View this message in context: http://r.789695.n4.nabble.com/help-spectral-analysis-spec-pgram-tp851439p2216079.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list