corcorana / restingIAF

Source code and associated materials for resting-state individual alpha frequency estimation in EEGLAB
GNU General Public License v3.0
29 stars 5 forks source link

PAF value returned as NaN #4

Open sjeung opened 1 week ago

sjeung commented 1 week ago

Hello, I have a question you might know a quick answer to. When plugging my data into the tutorial script, I notice that only one participant's data returns a NaN muPaf value as well as other parameters. In the documentation a case is described where the sd column has a NaN entry due to the lack of cross-channel muPaf estimate. Is NaN entry in the muPaf column also an expected behaviour and should I interpret it as no alpha peak detected? The data structure is identical to that of other participants for whom it runs perfectly.

corcorana commented 1 week ago

Hi -- yes, that's exactly right; no alpha peak has been detected in this case (given the parameters used to separate peaks from background fluctuations). Bear in mind that PAF aims to resolve a single dominant peak, so it could be the case you have two strong peaks of similar magnitude -- a CoG estimate should still be returned in this case. You might be able to resolve a PAF estimate if you reduce the mpow optional input from 1 (to capture smaller peaks -- note this increases the risk of spurious peak detection), and/or by reducing the mdiff optional input from the default value of 0.2 (if there are indeed multiple peaks of similar magnitude). Hope that helps.

On Tue, 19 Nov 2024 at 03:26, Sein Jeung @.***> wrote:

Hello, I have a question you might know a quick answer to. When plugging my data into the tutorial script, I notice that only one participant's data returns a NaN muPaf value as well as other parameters. In the documentation a case is described where the sd column has a NaN entry due to the lack of cross-channel muPaf estimate. Is NaN entry in the muPaf column also an expected behaviour and should I interpret it as no alpha peak detected? The data structure is identical to that of other participants for whom it runs perfectly.

— Reply to this email directly, view it on GitHub https://github.com/corcorana/restingIAF/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGC4TY7KLFZZXK5RKNXJLET2BIIMTAVCNFSM6AAAAABSABTW2CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGY3DSMJRGY3DINI . You are receiving this because you are subscribed to this thread.Message ID: @.***>