On 14.05.2010 06:03, vikrant wrote:

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??




You find that the first highest peak is at freq 0.1666667 hence 1/0.1666667 = 6 is your period (not 4). But as I said before, you need to read a textbook about Fourier analysis / the spectrum...


Uwe Ligges

______________________________________________
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