Hi, I am a student and looking for some open data, I followed the tutorial and used command "nsrr download haassa/datasets" to fetched the data, but failed to get some file. It shown that: "Token Not Authorized to Access Specified File".
Thanks for your interest in the resource. To access data files you need an approved data request. Please click Request Data Access next to the dataset of interest from the datasets index. Most data requests are reviewed and receive a response within 1-2 weeks of submission.
Note: HAASSA has additional access requirements, so I might suggest starting with a different dataset (e.g. SHHS, MESA).
A commonly used AHI variable in SHHS is: https://sleepdata.org/datasets/shhs/variables/ahi_a0h4
If you are using the XML files then you can add up the number of "Apnea" and "Hypopnea" events to compute your own indices.