Recode Variables

Often when working with datasets there is the desire to recode variables; for example, to reverse the polarity of an item or group multiple variables as a single variable, summarized as, for example, differentiated collected information on schooling for three levels of education. MAXQDA Stats allows recoding of multiple variables or variable values at a time.

Recode into New Variable

Normally variable values are recoded as new variables so that the original value will not be affected. Proceed as follows:

  1. Begin the recoding process from the menu function Transform > Recode into new variable.
  2. The following window will appear:
  3. In the left hand pane, select the variables that you wish to recode. Double-click the desired variable to transfer it to the right-hand pane. Multiple variables can be transferred at a time by holding the Ctrl/cmd key as the variables are selected, then moving them to the right pane with the mouse or by using the blue arrow in the center of the window.
  4. For the new variable name, MAXQDA Stats automatically suggests the original name supplemented with a number after a hashtag #. You can modify the name by editing it in the cell.
  5. When you click OK, a dialog box will appear for the input of the modified values:
Dialog box for input of values to be recoded
  1. In the “Old value” column, enter the original value and in the “New value” column, enter the target value to be recoded. The image above shows a classic example: the value of the items is reversed, so that the lowest value of 1 becomes the highest value of 4, and vice versa.
  2. Using the selection list in the first column, you can specify a range of values to which a single new value will be assigned. In the selection list, the operators greater than (>); less than (<); greater than or equal to (); or lesser than or equal to () are available. Using the following rows, a variable with a value of 3 can for example be dichotomized, so that in the new variable 0 is displayed for values under 3, and 1 is displayed for values over 3:
  3. The button Insert all existing values lists the occurring values for all selected variables, which is especially practical when all values of a variable will be recoded and you wish to immediately begin entering the new values.
  4. The  and  symbols allow you to delete individual or all rows.

 

  1. When you click OK the new variable will be inserted and displayed in the Data Editor. The variable label will appear as the original supplemented with the suffix “recoded” so the recoded variable can be easily recognized. If no label is present, the variable name is used as a label to which “recoded” is added.

MAXQDA Stats proceeds specifically as follows when recoding:

  • In case of conflict of the attribution, the lower attribution will be applied. For example, if the first row states “1 to 4” and the second row states “>0 to 3”, 1 will be recoded as 3 and not 4.
  • If no new value is specified for an existing value, the old value will be retained.
  • Value labels will not be transferred to the new variable, but the definitions for missing values.

Recode Code Frequencies per Document as New Variables

With MAXQDA Stats, you can not only recode variables, but also the code frequencies that were transferred from a MAXQDA project to MAXQDA Stats. If you launched MAXQDA Stats with the data from a MAXQDA project, click the “Code” tab in the dialog box to select individual codes from the familiar code tree.

To recode a code as a new variable, double-click the code or drag it into the right pane of the window using the mouse. You can also use the blue arrow to transfer codes to the right pane.

Select codes for recoding as new variables

Assuming that you are only interested in whether or not a code has been assigned in a document, the exact number of code frequencies is not relevant, but only whether 0 or a higher number is displayed. In this case the code can be recoded in a single row and stored as a new variable:

Recoding into the Same Variable

Recoding into the same variable is performed in the same way as recoding into a new variable, from the menu Transform > Recode into same variable. However, for this procedure only variables, not codes, can be selected, and naturally the definition of a new variable name is omitted.

 

Was this article helpful?