Essays on the statistical analysis of roll-call votes and judicial citations