Move & Combine codes

<< Click to Display Table of Contents >>

Navigation:  STRUCTURE Data Files > Extend Observations >

Move & Combine codes

If you have logged multiple Codes per Event, usually each Code describes only part of the behavior, movement or situation. In the INTERACT statistics, each Class is handled separately, though. This does allow you, to extract many overall statistical figures per Code, but does not provide you with the statistics on the actual behavior, which depends on the combination of Codes logged per Event.

To get results, based on a combination of those single entries, you need to aggregate one or more Classes to get the values you need. This aggregation afterwards, is a lot easier than splitting up combined Codes!

Another application of this routine is, to move Codes to another Class. This helps you to restructure your Codes and Classes in fully coded data files, allowing you to correct definitions errors.

Combine Codes

Note: This routine combines Codes from the same Event only. To create combinations of overlapping Codes from separate Events, you need to find co-occurrences, as is described in Co-occurrence Filter.

Assume we have a data file in which, among other Codes, the 'Emotion' of a test person and the corresponding 'Scale' has been logged in two separate Classes, like shown in the picture:

Move_Combine_List1

Those Codes, as shown, allow you to:

oGet the frequency and the duration per emotion, independent of the scale, which is a good thing.

oGet the statistics on the time(s) spent in a specific emotional scale, which is good too, because it allows you to judge whether it is a very emotional person or not.

To get statistics on e.g the times the test person was Angry on the scale of 2 or Confused at the scale of 3, you can either use the State-Space-Grid or you need to combine those Codes in an additional column, so you do not loose the original information:

Clicking Transform - Codes - Move and Combine btn_movecodes first offers a dialog in which you can select the Classes (or Codes) you want to combine:

Move_Combine_ClassSelection

This dialog, shows Codes and Classes as they are available in the current CodeArchive and allows you to select exactly those Class and Code combinations you need.

TIP:Rearrange the order of the Classes in your data file, to influence the structure of the resulting Code combinations (e.g. 'Smile_1' or '1_Smile').

In our situation, we want all emotions (except 'Neutral')) to be combined with the rated scale per Event (we only coded the 'Neutral' Events to create a mutual exclusive set of Codes).

Select the required Codes from the class 'Emotion' as well as the class 'Scale'.

Confirm your selection with OK.

Next you get this Move and Combine dialog in which you can specify what you want to do:

Select the option Combine Codes across Classes.

Enter a name for your new Target Class (here Emotion+Scale).

Select the option on how to handle any previous content, if any.

If you did select an existing Class, select one of the three available options about where to put the new, combined information: Overwrite target contents, Add after target contents, Add in front of target contents.

Change the Separator, if you want to use another character between the combined Codes.

To delete the selected Codes from the original Class, select Wipe out source.

Confirm with OK.

Move_Combine_Dialog_selection
TIP:Use the Edit - Find command to select a specific number of Events and use the option Use Codes from Marked elements only to create combinations for specific Events only. This little option opens up a whole new world of restructuring possibilities!

Note: You can select any number of Codes and Classes to be combined into a single new Code.

INTERACT now performs the combine operation which results in the following data file:

Move_Combine_List2

Move Codes

If you want to physically move one or more Codes from one Class to another Class, this routine is your best friend as well.

Select the Code(s) you want to move (pick only Codes that have the same target Class, per pass).

Select Move Codes (overwrite target and wipe source).

Move_Combine_Dialog_selectionMove

As your Target Class, select the Class those Codes need to be moved to, or enter a new name for a new Class.

Confirm with OK.

Note: The original Codes will be removed from their initial Class!

Copy Codes

Sometime, duplicating Code information is useful. It allows you to aggregate observations by renaming detailed Codes into a more generic ones, for example.

If you want to copy all Codes within a, it is probably easier to use the command Duplicate Class instead.

To Copy specific Codes to another Class, without deleting the original Code, you can use this Move & Combine command:

Select the Code(s) you want to copy (pick only Codes that have the same target Class, per pass).

Select Copy Codes (overwrite target).

Move_Combine_Dialog_Copy

As your Target Class, select the Class those Codes need to be copied to, or enter a new name for a new Class.

Confirm with OK.