Hidden Markov Model (HMM) for Sleep/Wake Identification using Actigraphy in R
I would like to analyze the NHANES 2011-2014 accelerometer datasets to calculate sleep parameters. I read about the HMM algorithm in R (found here: https://github.com/xinyue-L/hmmacc), however I’m struggling to understand the code and how it applies to the NHANES minute summary file (PAXMIN).