Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: Interpreting -pergram- results


From   "Dan Weitzenfeld" <[email protected]>
To   [email protected]
Subject   Re: st: RE: Interpreting -pergram- results
Date   Tue, 8 Jul 2008 13:17:06 -0700

Thanks Nick, I did not know I could do that.

On Tue, Jul 8, 2008 at 11:36 AM, Nick Cox <[email protected]> wrote:
>
> In addition to the manual entry, note that the code is accessible and
> fairly short. So
>
> . viewsource pergram.ado
>
> followed by detailed scrutiny may answer your question.
>
> Nick
> [email protected]
>
> Dan Weitzenfeld
>
> I'm wondering if anyone can confirm that I am correctly interpreting
> the results of the command -pergram- with the option [,
> generate(newvar)].
>
> As per the digital signal processing book I have, if you have _N
> samples, your DFT results are binned into _N bins, with:
> bin _n
> holding the results for the frequency
> (_n*samplingfrequency)/_N
>
> So does Stata use this methodology for putting the "raw periodogram
> values" into newvar?
> Am I correct that because Stata does not have an observation zero, it
> puts the results for the frequency (_n-1*samplingfrequency)/_N in
> observation _n , with _n ranging from observation f to l?
>
> Any guidance here would be much appreciated; Stata's help for this
> command is anemic.
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index