Independent risk factors for hypoxemia were age ( P = 0.00015 ) , high body mass index ( P = 0.0044 ) , history of sleep apnea ( P = 0.025 ) , standard monitoring group ( P = 0.000069 ) , total dose of propofol ( P = 0.031 ) , and dose of ketamine ( P < 0.000001 ) .