Skip to content

yasa.sleep_statistics #148

Answered by raphaelvallat
olly1987 asked this question in Q&A
Aug 29, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @olly1987,

Sleep onset latency: no condition, SOL is simply the latency to the first epoch of sleep. We could implement a "latency to persistent sleep" if desired.

Sleep Period Time:

is the fist period of sleep the first epoch of any sleep stage independent of what follows

Correct

Latencies

REM latency should be the time from sleep onset to first epoch of REM according to the AASM guidelines.

As of now, "Lat_REM" returned by YASA is the latency from the beginning of the record to first epoch of sleep, which is consistent with other sleep stages. You can easily calculate the AASM REM latency by substracting the SOL. However, you are right that this should be made more explicit in th…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@olly1987
Comment options

@raphaelvallat
Comment options

Answer selected by olly1987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants