On Tue, 3 Nov 2020, ri...@triton.net wrote:

Do you know what the column names are that are returned by periodogram_matrix() function

I thought they were omega and spectral density, but the spectral density from periodogram() function seems to output something different than periodogram_matrix() function. [...]

periodogram(0, -1, dset, OPT_O, prn);

The usage above, with OPT_O, calls for an automatically sized Bartlett window.

periodogram_matrix (*dset->Z,dset->t1,dset->t2, -1, &err);

But this usage, with -1 passed for the @width argument, calls for the plain sample periodogram. So the two calls are not going to produce the same densities.

You should get the same results if you pass OPT_NONE to periodogram() in place of OPT_O, or if you pass a width of 2*sqrt(n) to periodogram_matrix(), where n is the sample size. The two interfaces call the same code in the background.

Allin
_______________________________________________
Gretl-users mailing list -- gretl-users@gretlml.univpm.it
To unsubscribe send an email to gretl-users-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/

Reply via email to