Chapter 2 Introduction

Course Notes for Intermediate R - R for Survey Analysis.

2.1 Aims

Visualisation of the data processing workflow

2.1.1 Day 1

  • Load SAS/SPSS data in R.
  • Clean the data.
  • Exploring the data with summary stats.
  • Applying survey weightings.
  • Cross tabs.

2.1.2 Day 2

  • Plotting survey data.
  • Regression & plotting.
  • Testing regression assumptions and hypothesis testing.

2.2 Why R

(You’re here so hopefully you’ve been persuaded.)

  • No licensing issues. More than 8 people can use it at once.
  • Robustness - I can share the course notes and know it runs the same on your computer. Point-and-click SAS/SPSS has failed some scientific papers.
  • Reuse - when solving the same problem you can copy-paste existing code.