Skip to content

Commit

Permalink
Update 2023-10-31 Free web IAT.md
Browse files Browse the repository at this point in the history
More updates
  • Loading branch information
baranan authored Oct 29, 2023
1 parent 49ffc28 commit beb0e88
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions _posts/2023-10-31 Free web IAT.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ init_data_pipe(API, 'YOURDATAPIPETOKENGOESHERE', 'csv');

### How we define the IAT

If you go to [our example](https://github.com/baranan/minno-tasks/blob/master/docs/studies/raceiat/raceiat.js), you will see how simple it can be to define your own IAT:
If you go to [our example](https://github.com/baranan/minno-tasks/blob/master/docs/studies/raceiat/raceiat.js), you will see one example for how to define your own IAT:

```js
define(['pipAPI','https://cdn.jsdelivr.net/gh/baranan/minno-tasks@0.*/IAT/iat10.js'], function(APIConstructor, iatExtension){
Expand Down Expand Up @@ -153,9 +153,9 @@ If you don’t want to change the default value of an argument, you don’t need
If you change even one parameter within a child object (i.e., within a property that is an object, such as the property *category2*), you must define the whole object in your own code (as we did with category1 and category2 in the example above).
The only parameters that we changed in the example above are the categories, the attributes (labels and stimuli), the "isTouch" arguments that define whether this task currently runs on a touch-device, and the url for the folder that hosts the images.

Note that when we define the stimulus words for the attribute categories, we use some code in order to get them (e.g., "word: global.posWords[6]"). If you want to change the words, you can simple write them directly in that file. For example:
Note that in the example, when we defined the stimulus words for the attribute categories, we used some code in order to get them (e.g., "word: global.posWords[6]") from a previous step of this study. If you want to change the words, you can simply write them directly in that file. For example:
```js
stimulusMedia : [ //Stimuli content as PIP's media objects
stimulusMedia : [
{word: 'Fantastic',
{word: 'Great',
{word: 'Positive',
Expand All @@ -172,25 +172,16 @@ If you’re using words rather than photos, you need to update the [media](https
If you want to update the attributes, see how the attributes are defined in the [extension script](https://cdn.jsdelivr.net/gh/baranan/minno-tasks@0.*/IAT/iat10.js) and override them by defining your own attributes in your IAT script.
Although our IAT script supports touch devices, the IAT does not detect automatically whether the participant is using a touch device (e.g., mobile). Therefore, if you want your participants to run the IAT on a mobile device or a tablet, you will need to create an IAT version specifically for those participants (in your script, set isTouch:true in the IAT parameters).
In the example study, we use Minno's internal detection at the beginning of the study, in the [manager file](https://github.com/baranan/minno-tasks/blob/master/docs/studies/raceiat/mgr.js) in the following line:
` { type: 'isTouch' }, //Use Minno's internal touch detection mechanism. `
In the example study, we use Minno's internal detection at the beginning of the study, in the [manager file](https://github.com/baranan/minno-tasks/blob/master/docs/studies/raceiat/mgr.js) in the following line:<br/>
`{ type: 'isTouch' }, //Use Minno's internal touch detection mechanism. `

### Processing the IAT data

The original [post](https://minnojs.github.io/minnojs-blog/qualtrics/) about running MinnoJS scripts from Qualtrics explains the how to process the data saved by Qualtrics. [Here](https://github.com/baranan/minno-tasks/blob/master/IAT/qualtrics/minno.qualtrics.iat.process.rmd) ([download from [here](https://cdn.jsdelivr.net/gh/baranan/minno-tasks@0.*/IAT/qualtrics/minno.qualtrics.iat.process.rmd)] is an R (well, rmd) script that you can use to analyze the IAT data. If you don’t feel comfortable using R, here is how to create a csv file with the IAT data, using Excel.
1. Download the data from Qualtrics as csv.
2. Open the csv file with Excel
3. Copy only the cells with IAT data. For instance, because the IAT was in Q3 in my Qualtrics questionnaire, the relevant column is under Q3. Select only the cells with that data and copy those cells.
4. Open a notepad (or notepad++ or any other simple editor) and paste the data (the cells you copied) to that file.
5. Replace (usually, using ctrl-H) the text *“block,trial* with the text *block,trial* (to remove the “ before block)
6. Replace “”” (three double quotes) with “” (two double quotes)
7. Replace “” (two double quotes) with “ (one double quotes)
8. Save that file as a csv file
9. You can open that csv file to make sure that it is fine.

The steps in an animated gif:
![Data image](../images/processiat.gif)
The data will be saved under your OSF project, based on the information you provided in the DataPipe website.
There will be a separate file for each task in the study, for each participant. The participant is identifed by session_id. The session_id is a part of the file name and it is also saved on each row of each data file.

If you want an example how to analyze the data from the example, you can download this R script.

### Using Project Implicit's IATs
Expand Down

0 comments on commit beb0e88

Please sign in to comment.