An emotional Danica Patrick declared Friday that she will race two more times next year and then retire as a driver after the 2018 Indianapolis 500.