Step 1: Setup
First, download your data from Qualtrics
Open your survey in Qualtrics and hit the "Data & Analysis" tab in the top menu bar:
Find the "Export and Import" dropdown menu above the data and select "Export Data..."
Note the default is to download the data as a CSV file with the display text in the survey entered as the data output ("Use choice text"). You also have the option to download the data as "numerical values", or dummy coded. For our purposes, download both versions of the data so we can look at them. You'll have to go through the process of downloading twice.
Make sure to unzip both of these files so you have .csv files instead of .zip files and rename them so you can tell them apart
In examples, this tutorial will use data from an informal Qualtrics experiment on nationalistic visual cues and nationalistic vs patriotic sentiment. You can download both versions of the data here:
Numerical Data Choice Text DataSet up your RStudio Cloud Project
Make sure you have an RStudio Cloud Account and log in, then:
Make a new project:
Upload both of your data files to the project with the Upload button:
Install some helpful packages in your RStudio Environment
Some functions (for example mean(data)) come built in to base R, but packages give us access to helpful functions that make life easier. dplyr gives us shortcuts to deal with dataframes, ggplot2 gives us the ability to generate more intuitive and interpretable plots of our data, and gmodels and ltm give us a few statistical tests that don't happen to be built in to base R.
With RStudio, there are two ways to install packages:
Method 1: Copy the following code into the console on the bottom left and run it:
Method 2: Use the bottom right window GUI interface
Click on the "Packages" tab, then the "Install" button underneath it. Type the four packages names into the input bar with spaces in between:
dplyr ggplot2 ltm car psych gmodels
Then make sure the "Install dependencies" box is checked, and press "Install"
A bunch of stuff will print in the console VERY fast. If you get warnings, that's ok. But if you get errors, read them and see if you can figure them out. Sometimes, depending on your computer, you may need to install other packages to support these ones.