A stronger immune system may help explain why women are less likely to become ill in the face of isolation and loneliness than men, research in rats suggests.