9.9 Data: Manipulation/Creation

  • We can also manipulate existing or create/add/simulate new data
  • Applying mathematical functions to existing of data
    • Multiply by 10 and add; Recode to and add dummy; Add mean; Calculate and add correlation
Examination_cat Fertility Agriculture F.10 F.d F.mean F.A.corr
lower 80.2 17.0 802 0 85.26667 0.5387801
lowest 83.1 45.1 831 1 85.26667 0.5387801
lowest 92.5 39.7 925 1 85.26667 0.5387801
  • New data either appended to matrix (column or row) or stored in new object
  • Statistical models (regression): Mathematical functions applied to portions of data that are reduced to fewer estimates
  • Interactivity often involves manipulation, creation or reduction of underlying data