example1_script

example1_script()
Example script 1

Walk through a single subject, MESA ID 2127, same subject as in Figure 1b (Chen et al, Sleep 2022)

  • Step 1: Convert saved data to design matrix and response – Step 1+ : Visualize the position, stage and event train

  • Step 2: Model fitting – Step 2+ : Visualize model output as a table

  • Step 3: Plot history modulation curve

  • Step 4: Evaluating model goodness-of-fit using KS plot

Created by, Shuqiang Chen, 08/16/22 The script 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”


Clear all