An empirical analysis of valence in electoral competition