People who don't give up on their goals (or who get better over time at not giving up on their goals) and who have a positive outlook appear to have less anxiety and depression and fewer panic attacks, according to a study of thousands of Americans over the course of 18 years. Surprisingly, a sense of control did not have an effect on the mental health of participants across time.