The Logic of Survey Analysis.