plot_DesignMx_Resp

plot_DesignMx_Resp(pos, sta, y)
Fxn to visualize design matrix and response
  • Input: * pos: [, x 1] double - binary (0 or 1), 1 means Supine position at that time interval * sta: [, x 5] double - [N1 N2 N3 REM Wake], binary (0 or 1),

    value 1 in each sta column indicates the corresponding stage the participant is in at that time interval

    • y: [, x 1] double - response, binary (0 or 1) event train, 1 means the apnea event happened at that time interval

  • Output: A figure shows respiratory event train, body position, sleep stages (From top to bottom).

Created by, Shuqiang Chen, 08/16/22 The fxn is companion to the paper by Shuqiang Chen, Susan Redline, Uri T. Eden, and Michael J. Prerau. “Dynamic Models of Obstructive Sleep Apnea Provide Robust Prediction of Respiratory Event Timing

and a Statistical Framework for Phenotype Exploration, Sleep, 2022”