plot_hist_mod_curve

plot_hist_mod_curve(bin, ord, yhat, lo_bound, hi_bound, isis)
Function to plot history modulation curve with confidence intervals

Input: * bin: double, bin size, bin = 1 (sec) * ord: double, total time lag: 150 * yhat: double,[ord x 1], history dependence curve * lo_bound: 95% lower confidence bound of yhat * hi_bound: 95% upper confidence bound of yhat * isis: double,[, x 1] inter-event-intervals in seconds

Output: A history modulation figure that describes how past respiratory event affects current event rate

“Dynamic Models of Obstructive Sleep Apnea Provide Robust Prediction of Respiratory Event Timing

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