Categorical survey data analysis in r