Shared Scripts, Data, Stimuli, Files, and Demos

Eind_Versie_A3 Run Experiment

Eind_Versie_A3

Luna

No comments yet
 




Comments

No comments yet

If you are a registered user and signed in, you can here copy this script and its stimuli to your own account, where you can edit it and change it in any way you want.

It is absolutely free to register (no credit card info asked!). You can then instantly copy this experiment with one click and edit it, change its accompanying texts, its landing page, stimuli, etc. Invite your colleagues, friends, or students to check out your experiment. There is no limit on how many people can do your experiment, even with a free account.

The catch? There is no catch! Just keep in mind that with a free account, you cannot collect data. For teaching that is usually not a problem. For research, prepaid data collection (unlimited subjects) starts as low as €10.00 for a 10-day period.

 
main.setfontsize(70);

radio("Participation in this study is voluntary and you may withdraw any time. would you like to proceed?", [["Yes"] , ["No"]], "consent");

if (response.consent === "Yes")
{
    
instruction("Please, answer the following questions about yourself.");

 // DEMOGRAPHIC QUESTIONS
    radio("What is your gender?",[["Female"],["Male"],["Other"],["Prefer not to say"]],"gender"); 
    select("What is your age?",range(0,100),"age"); 
    
    text("You selected {gender}, {age} years"); 
    await(3000);
    
instruction("You will be presented with different words in different colours. There are two blocks with 12 words in total in this experiment.");

var trials = [
    {word: 'Guitar', color: 'green', key: 'g'},
    {word: 'Table', color: 'green', key: 'g'},
    {word: 'Calender', color: 'red', key: 'r'},
    {word: 'Area', color: 'blue', key: 'b'},
    {word: 'Plant', color: 'red', key: 'r'},
    {word: 'Spring', color: 'green', key: 'g'},

    {word: 'Day', color: 'red', key: 'r'},
    {word: 'Yellow', color: 'blue', key: 'b'},
    {word: 'Farm', color: 'blue', key: 'b'},
    {word: 'Book', color: 'red', key: 'r'},
    {word: 'Car', color: 'green', key: 'g'},
    {word: 'School', color: 'blue', key: 'b'}
];

shuffle(trials); // Randomize trial order


instruction("Press the first letter of the color in which the word is printed, ignoring the meaning of the word itself: r key (for red), g key (for green), or b key (for blue).");

text("The experiment will start shortly. Get ready!");
await(2000);

for (var i = 0; i < trials.length; i++) {
// This creates an fixation point  
  text("+").style("color","black");
  await(500);
  clear();
  await(Math.random());
//Shows the right trail 
  var words = text(trials[i].word).style("color",trials[i].color);
//Keypress 
  e = await("keypress");
  clear();
  await(1000);

// Check if the pressed key is correct
var isCorrect = e.key === trials[i].key;

// Log RT and correctness
  log(e.RT, "RT_NONEMO_" + words);
  log(isCorrect, "CORRECT_NONEMO_");
}

var total = e.RT;
var average = total/12;
text("You average reaction time was: " + average + " ms").style("color","black");
await(5000); 

text("Finished!").style("color","black");
await(1000);

var trials = [
    {word: 'Insult', color: 'green', key: 'g'},
    {word: 'Romantic', color: 'green', key: 'g'},
    {word: 'Free', color: 'red', key: 'r'},
    {word: 'Gossip', color: 'blue', key: 'b'},
    {word: 'Embarassed', color: 'red', key: 'r'},
    {word: 'Tense', color: 'green', key: 'g'},

    {word: 'Family', color: 'red', key: 'r'},
    {word: 'Peaceful', color: 'blue', key: 'b'},
    {word: 'Rejected', color: 'blue', key: 'b'},
    {word: 'Panic', color: 'red', key: 'r'},
    {word: 'Jealousy', color: 'green', key: 'g'},
    {word: 'Fun', color: 'blue', key: 'b'}
];

shuffle(trials); // Randomize trial order

instruction("Press the first letter of the color in which the word is printed, ignoring the meaning of the word itself: r key (for red), g key (for green), or b key (for blue).");

text("The experiment will start shortly. Get ready!");
await(2000);

for (var i = 0; i < trials.length; i++) {
// This creates an fixation point  
  text("+").style("color","black");
  await(500);
  clear();
  await(Math.random());
//Shows the right trail 
  var words = text(trials[i].word).style("color",trials[i].color);
//Keypress 
  e = await("keypress");
  clear();
  await(1000);

// Check if the pressed key is correct
var isCorrect = e.key === trials[i].key;

// Log RT and correctness
  log(e.RT, "RT_EMO_" + words);
  log(isCorrect, "CORRECT_EMO_");
}

var total = e.RT;
var average = total/12;
text("You average reaction time was: " + average + " ms").style("color","black");
await(5000); 

text("Finished!").style("color","black");
await(1000);

//DEBRIEFING
text("In this study, we are researching if emotional words are reacted slower to than non-emotional words in a stroop-task.");
await(4000);
text("Thank you for your participation!");
await(2000);

}
else
{
    text("Experiment ended.");
    await(2000);
    clear();
}

Data inspection is forthcoming!

In the mean time, authors may download their own data and make it available as an Excel file. Check out the 'Stimuli and Files' tab.

Click on a category to view the stimuli and files

You can download the files shown here by clicking on the file names or image. Note that you cannot link directly to the images, sounds, videos, etc. shown here from other web pages; the link will go stale in about one hour and will no longer work after that.

This experiment has no images

You can download the files shown here by clicking on the file names or image. Note that you cannot link directly to the images, sounds, videos, etc. shown here from other web pages; the link will go stale in about one hour and will no longer work after that.

This experiment has no images

You can download the files shown here by clicking on the file names or image. Note that you cannot link directly to the images, sounds, videos, etc. shown here from other web pages; the link will go stale in about one hour and will no longer work after that.

This experiment has no images
This experiment has no video links

You can download the files shown here by clicking on the file names or image. Note that you cannot link directly to the images, sounds, videos, etc. shown here from other web pages; the link will go stale in about one hour and will no longer work after that.

This experiment has no images

Related Experiments