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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to