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).
I tried to apply the sleep.summary function on the NHANES PAXMIN_G.XPT file, but it doesn’t work. I’m very new to R, so any help that explains the code or outlines how I can use the code on those NHANES files is much appreciated.
Thank you so much for you help!
emma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.