A median of 45% across 34 surveyed countries say it is necessary to believe in God to be moral and have good values. However, public opinion on this question, as well as the role of God, prayer and religion varies by country, region and economic development.