Allin Cottrell schrieb:
On Tue, 16 Feb 2010, Sven Schreiber wrote:
> not sure what the current status is of corrgm and xcorrgm: xcorrgm is
> missing in the function reference, but mentioned recently in the
> changelog. OTOH, doesn't the third optional parameter of corrgm cover
> the xcorrgm case? I know we had a discussion about that API, but I don't
> remember the outcome.
There are two distinct _commands_, corrgm and xcorrgm, but there's
only one _function_, corrgm(), that combines the two cases.
whoops, sorry -- now it all makes sense of course...
> W.r.t. pergm I have a feature request: would it be possible to allow a
> matrix argument to get the periodograms/spectra of all columns of the
> matrix at once?
You mean, allow a general matrix for the first argument to
pergm()? (Right now it has to be a series or column vector.)
Yes that's exactly what I meant. The return matrix would have n+1
columns, the first holding the omegas, the remaining ones the estimates.
Now that I think about it, I guess it would be logical to also allow a
list argument, once the matrix step is taken.
For example plotting the spectra:
list interestingvars = var1 var2
matrix specs25 = pergm(interestingvars,25)
gnuplot 2 3 1 --matrix=specs25
That in turn would probably beg the question why multiple selection and
right-clicking in the GUI doesn't give you the spectrum option... Oh my,
I'm sorry, I didn't want to push it this far, I can see the
ramifications now...
thanks,
sven