Research dating back decades has found that people who own pets, especially dogs, tend to be healthier than people who don’t.