The outcomes were low-frequency power divided by high-frequency power ( LF/HF ratio ) in the analysis of heart rate variability , the apnea-hypopnea index ( AHI ) , and ventilatory pattern variability before and after sleep onset between environments .