Co-occurrence filter

<< Click to Display Table of Contents >>

Navigation:  ANALYSIS with INTERACT > Find Overlapping Events >

Co-occurrence filter

Find specific combinations of behavior, that happened simultaneously, within the same DataSet i.e. find Observation Codes that are overlapping in time - also called Co-occurring Codes. It is the perfect routine if you want to know, how often and/or for how long a certain behavioral combination occurs (like all parts where "Code A" AND "Code C" AND "Code E" are coded simultaneously), or any other combination of your choice.

In many studies, such a combination of Codes often specify a specific behavior. That is why you can use this routine to create new Events with a new Code, describing this 'new' behavior, based on the overlapping found.

This powerful functionality allows you to:

oIdentify Codes that do overlap in time

oAutomatically create new Events that exactly represent the overlapping intervals

oUse new Code expressions, including a new Class, for those new Events

oDecide about the destination position of those new Events (inserted in the original DataSet or in new DataSets)

oExtract all statistics for those automatically generated Codes

Example: We want to find all parts where two test persons look and show 'Positive affect' at the same time, but the steps below can be applied to ANY combination of Codes!

The following example is based on a very simple set of data, which allows us to easily check and track what happened. You can also select more than two Codes. INTERACT searches for those sequences, where ALL selected Codes where coded simultaneously!

IMPORTANT: Only Events within the same DataSet are compared.

Identify Co-occurrences

Click Analysis - Time Sequence - Co-occurrence Btn_CooccurrentsFilter.

If your data file contains more than a single DataSet, a DataSet selection dialog appears:

FCO_Filter1a

If not for all, select the Sets you want to include in your search and confirm your selection with Apply.

Note: The resulting file will only hold the original data for the selected DataSets!

Now a Code selection Filter dialog appears, in which you need to specify the combination of simultaneous Codes you are looking for:

FCO_Filter2

Select the Codes you are interested in.

TIP:Click on the File openBtn_FilterSelection_OpenFilter  icon in the bottom left corner, to restore your last selection of Codes! How to save the selection of specific groups of Codes is described in Save and re-use predefined filters.

IMPORTANT: This routine searches for the selected combination using an AND between the Codes. That means that only sequences were ALL selected Codes really occurred simultaneously are found.
With this routine it is not possible to identify any possible combination of the selected Codes; for that, take a look at the Pattern Segmentation routine.

New Events

To automatically create new Events, describing the parts where your selected combination was observed simultaneously:

Select Create Events from detected fragments.

New Code

To tell the automatically created Events apart from the original coding, we advise to create new Codes to identify this 'new' behavior:

Arrow-Right-OrangeUse new Codes - If you use a new behavioral Code for the combined behavior and maybe even create a new Class, use the following fields to enter this information:

Enter a new Class name in which the new Codes are entered, or select an existing Class from the pull down menu.

Enter the name of the new Observation Codes into the Code field.

Arrow-Right-OrangeUse original Codes - INTERACT automatically enters all original Codes in their original Classes in the new Events, if you do NOT enter any new Code or Class information. It will be harder to tell the original Codes apart from the overlaps, though.

Data Structure

Decide where the new Events should be created.

Arrow-Right-OrangeKeep data structure - Per default, those new Events are entered into the DataSet they occurred. You do not need to take any further action.
Arrow-Right-OrangeExtend Data Structure - If you want, for some reason, to create your new Event into a separate set of DataSets, you can do that as well:

Select Create new DataSets for the new Events.

Enter a DataSet description, for the new DataSets, into the now appearing DataSet text field.

Now, for every DataSet, in which at least one overlapping was found, a new DataSet is created. The original DataSet description is added behind the DataSet text, as entered into this dialog, so you are able to keep track of its origin.

Arrow-Right-OrangeExtract Co-occurring data to New Document - Especially for large documents, the third option might prove to be very helpful. Inserting new Events into very large documents (>50.000 lines) can become quite time consuming; creating a new file that contains ONLY the overlapping sequences, speeds up the procedure dramatically.

Click the option Create in new document to export the overlapping sequences into a new document.

Check your entries and confirm with OK.

TIP:If you create a new set of DataSets for the new Events, it is advisable to manually create a new DataGroup first, for all new DataSets are created within the last available DataGroup.

Start Search for Co-occurrences

After confirming all entries above, INTERACT scans the current data file. For those parts where the selected Codes where logged overlapping in time (per DataSet) new Events are created, according to your settings.

As soon as all data is processed, INTERACT shows a message in which the number of co-occurring Codes (=overlaps) is displayed:

FCO_Filter_Result_Dialog

IMPORTANT: The new Events will be added to a NEW data file, leaving your original data file untouched. The new file will contain your original data for the selected DataSets AND the new Events for the co-occurrences found.

Schließen Sie jetzt das Zeitdiagramm-Fenster, um die Ergebnisse zu sehen.

Arrow-Right-OrangeEvents in original DataSets - You see the new class among the column headers. The new Codes can be found in the new, automatically inserted, Events. Those Events are inserted into the DataSet in which the co-occurrence was detected!
Arrow-Right-OrangeExtended data structure - If you did select the check-box Create new DataSets for the newly created Events, your document has 'grown' for at least one new DataSet.
Filter_Result_Liste

In this case you now see a new 'DataSet 4', containing the new Events,  filled with the new behavioral Code 'Eye contact Positive', within the new Class 'Co-occurrences.