How to Add Frequencies as a Variable in SPSS

This post will cover how to add the number of times a certain response has been given for a variable (its frequency or count), and append this information to the data set as a new variable in SPSS. For example, say you have a list of names. Next to each name you’d like to add the number of times the name appears in the list. In SPSS, this information is easy to view with the “frequencies” dialogue, but how do you add it as a variable automatically?

Continue reading →

Doing Math in Qualtrics

Sometimes when creating surveys in Qualtrics you wish to do some kind of math on a respondent’s answer. This post outlines a simple way to do so using javascript.

The procedure involves three main components. First, there are the questions themselves. These are the responses you wish to do some math operations on. Second, there are embedded data variables. You create these variables in the survey flow, and they allow you to save the values you calculate for later use. For example, you could use them in the survey flow (branch logic) or display the values as piped text. Third, there is the javascript. The javascript reads the answers of the questions, performs the math, and saves the embedded data variables.

Continue reading →

If you want to increase your success rate, double your failure rate. – Thomas J. Watson