Statistical analysis of questionnaires. A unified approach based on R and Stata