Read "Deep Survival". The author addresses this issue directly, and has actually found that people with religious faith do tend to have a higher chance of survival. He believes that it is a motivating factor to not give up trying. People who take charge and care for others also tend to not give up.