Your question is too broad. In general, risng average income (per capita GDP) will expand consumer's budget set and therefore people may have more choices quantitatively and qualitatively. If uncertainty is considered as well, then rising income may also increase the tolerance of riskness and may encourage people engage in more risky investment such as buying stocks.