Allin Cottrell schrieb:
On Mon, 20 Jul 2009, Allin Cottrell wrote:
> Revision to what I said before: pergm() takes either one or two
> arguments, the first being a series (or conformable matrix) and
> the optional second one being an integer bandwidth for use
> with the Bartlett kernel. If the second arg is omitted you get
> the sample periodogram.
>
> The returned matrix has 3 columns: omega in 1, the "periods" as
> printed by the pergm command in col2, and the density in col 3.
On third thoughts, we probably should not include the "periods"
column in the pergm function output -- omega plus density is
cleaner. Anyone?
I agree, having only one set of the x- and y-values of the corresponding
x/y-graph is more transparent.
On a slightly different point, I'm just wondering whether the number of
distinct omega values to return should be a function argument, too? What
I mean is something like:
pergm(x,10,100) -- would mean that the returned matrix has 100 rows
pergm(x,10) -- gives you the current default value
thanks,
sven