Skip to content
Prev 131922 / 398506 Next

discrepancy between periodogram implementations ? per and spec.pgram

There are several definitions of a periodgram.  Note that
[1] 1.837877

See the comments in ?spectrum about scalings.

I think the comments in ?per incorrectly ignore the scaling issues: per() 
does not take the base frequency into account and has an extra divisor of 
2*pi.  E.g.
[1] 6.283185 6.283185 6.283185 6.283185 6.283185 6.283185 6.283185 6.283185
  [9] 6.283185 6.283185 6.283185 6.283185 6.283185 6.283185 6.283185 6.283185
[17] 6.283185 6.283185 6.283185 6.283185 6.283185 6.283185 6.283185 6.283185
[25] 6.283185 6.283185 6.283185 6.283185 6.283185 6.283185 6.283185 6.283185
On Wed, 12 Dec 2007, Lieven Desmet wrote:

            
What is spec.arima?  If you meant spec.ar, that is on the same scale as 
spec.pgram for series with base frequency 1 (and for all series for R >= 
2.7.0).