The trainees should have their own laptops with them.
They should have installed the following open source programs:
For most of the exercises we will use R-studio and we will have to work with additional R packages. Make sure you are able to install R packages to your RStudio/R installation. For instance, you will need to install the library (R package)
foreign.
To install
foreign R package using RStudio: click Tools - Install packages, and in the second field (under the label Packages:) type foreign and click Install.
Some of the datasets will be avaialble at:
Andreadis, Ioannis. Paradata from Political Web Surveys. Ann Arbor, MI: Inter-university Consortium for Political and Social Research [distributor], 2014-09-26. doi.org/10.3886/E17816V1
To test that your R-Studio and R and foreign package are OK please do the following:
1. Create a working directory for the Training School. Prefer a directory directly under the root C: eg C:/WSPDS
2. Go to
www.openicpsr.org/repoEntity/show/17955 and download the dataset in your working directory and extract it. To download the file you have to accept the terms of use and type your email address.
3. In RStudio, click Session - Set Working Directory - Choose directory and select the working directory you have created in step 1.
4. In RStudio, type the following commands:
library(foreign)
paradata<-read.spss("hmv201410percent-17956.sav", to.data.frame=TRUE, reencode="UTF-8")
Do not pay attention to warning messages about unrecognized record types
You should get a list with 81 names (variables in the file)
[1] "q45" "q2" "q46" "q47"
[5] "q5" "q48" "q7" "q49"
[9] "q50" "q51" "q52" "q53"
[13] "q54" "q14" "q15" "q16"
[17] "q55" "q18" "q19" "q20"
[21] "q21" "q56" "q57" "q24"
[25] "q25" "q58" "q59" "q28"
[29] "q60" "q61" "q62" "q63"
[33] "q64" "q8" "q41" "q11"
[37] "q12" "t0" "t1" "t2"
[41] "t3" "t4" "t5" "t6"
[45] "t7" "t8" "t9" "t10"
[49] "t11" "t12" "t13" "t14"
[53] "t15" "t16" "t17" "t18"
[57] "t19" "t20" "t21" "t22"
[61] "t23" "t24" "t25" "t26"
[65] "t27" "t28" "t29" "t30"
[69] "t31" "sex" "age" "edu"
[73] "interest" "pvote" "vote" "conf"
[77] "scorex" "scorey" "device_pm_n" "device_type_n"
[81] "device_name_n"
To install other R packages using RStudio repeat the steps you have followed for the R package
foreign: click Tools - Install packages, and in the second field (under the label "Packages") type the name of the R package and click Install.
Please install the R package:
car