Re: [R] Different freq returned by spec.ar() and spec.pgram()

2007-11-21 Thread Prof Brian Ripley
Frequency has units (1/wavelength), and this is just a question of using different units. For monthly series, is this per month or per year? The functions were written for R at different times by different people: it would seem to make sense to alter spec.ar to use the per year interpretation.

[R] Different freq returned by spec.ar() and spec.pgram()

2007-11-21 Thread Eric Thompson
Dear list, I've recently become interested in comparing the spectral estimates using the different methods ("pgram" and "ar") in the spectrum() function in the stats package. With many thanks to the authors of these complicated functions, I would like to point out what looks to me like a bit of a