A code in the “Code System” can be transformed into a document variable, indicating how often the selected code appears in each document. The document variable is dynamic. MAXQDA will automatically update the document variable, i.e. increasing the variable value if a new segment is coded with the code. This feature is particularly useful as it allows the user to export code frequencies along with variables, or activate documents based on certain code frequencies for analysis.
To transform a code into a document variable, right-click the code and select Transform into a Document Variable.
MAXQDA will generate a document variable, with the same name as the code, as a numeric variable. The program will automatically insert the code frequency of each document into the appropriate cell of the column. It opens along with the “Data editor” of the document variable and positions it in the appropriate column. The content of this variable can’t be edited manually. MAXQDA updates the variable dynamically: If you add or delete an encoding for the transformed code, the variable value is automatically updated.
You can recognize variables transformed from codes in the “List of Document Variables” by the green square icon in the first column and the “Code” entry in the “Source” column.
The transformed code can be binarized by clicking the Convert to boolean variable icon in the “List of Document Variables”. The variable then no longer indicates how often the corresponding code occurs in the respective document, but whether it occurs (1) at all in the document or not (0).