1. education
2. income
3. influence
I've travelled and lived all over the world. It always struck me odd that the poorer places in the world always seem to value religion over education (my perception), and it creates a nasty cycle where the majority of people don't/can't better themselves.
I saw this first hand in the southern US where it was always God #1, everything else (including education, which in my view is super important) #2. You would be amazed at the things people would give up if they thought "God" told them to.
I haven't studied the interaction of the three things above, so this is just my observations, but if you have a strong influencer at a young age, that influencer has a dramatic effect on the trajectory of your life. If that person pushes you to education, likely you'll be ok. Though it goes both ways. If the influencer pushes you away from education (for whatever reason), your life situation could end up very differently.
I was very lucky to have a non-religious teacher mother who pushed education above all else. I didn't know college "was optional". In my family, it wasn't. Not b/c I think college is necessary; I don't by any means. It was her thinking and pushing that molded me in a certain direction. Even though I grew up in the northeast US, I saw super religious families who pushed their kids away from education. Those kids are now in the their 30s and 40s and have lost most of their lives to "god".