Analysis of effects and risk factors influencing longevity and animal health in sheep