Essays on Investor Heterogeneity in Equity Markets