Shared Scripts, Data, Stimuli, Files, and Demos

ClassicEx_KelseySHOU Run Experiment

ClassicEx_KelseySHOU

Feed Penguin

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(75);
var d1,d2,d3;
d1 = addblock("center",5,90,22.5,"honeydew").text("

Informed Consent

"); d2 = addblock("center",27.5,90,45) .text("I willingly participate in this experiment.
" +"I confirm that I am at least 16 years old and I realize that participating at any moment during the task.") .align("left"); d3 = addblock("center",70,30,10); d3.button("Confirm").await("click"); d1.destroy(); d2.destroy(); d3.destroy(); var b = main.addblock("center",20,150,60,"honeydew"); b.text("This is an Emotion Stroop Task." +"

It can take a minute to load. Please wait!

"); await(3000); preload('hup1.png'); preload('hup2.png'); preload('hup3.png'); preload('hup4.png'); preload('hun1.png'); preload('hun2.png'); preload('hun3.png'); preload('hun4.png'); preload('obp1.png'); preload('obp2.png'); preload('obp3.png'); preload('obp4.png'); preload('obn1.png'); preload('obn2.png'); preload('obn3.png'); preload('obn4.png'); preload('huntrial.png'); preload('obtrial.png'); preload('obtrial2.png'); preload('too_slow.png'); image.await("preloading_completed"); b.text("

You will answer some general questions before the task.

"); await(3000); main.removeblock(b); select("What is your gender?",[['male',0],['female',1],['others',3],['prefer not to say',4]],'gender'); input("What is your age?","Age"); scale("How well do you think you can detect others' emotion most of the time?","Very badly","Very well","Sensitivity"); var b = main.addblock("center",20,150,60,"honeydew"); b.text("

Instruction 1/2

" +"In this task, you will be presented with 16 image stimuli.
" +"Each image has a face of either positive or negative emotion.
" +"You will also see a emotion cue word on top of the image.
" +"

Press SPACE to continue

",85); awaitkey(" "); b.clear(); b.text("

Instruction 2/2

" +"Your job is to identify if the emotion cue matches the face emotion.
" +"Press 'c' if the cue and image are congruent.
" +"Press 'i' if they are incongruent.
" +"Try to respond as fast as you can.
" +"

Press SPACE to continue

",85); awaitkey(" "); b.text("You are now going to do a trial practice.
" +"

Press SPACE to continue

",85) awaitkey(" "); main.removeblock(b); var prac = [ {cue:"happiness",image:'huntrial.png',letter: "i"}, {cue:"sadness",image:'obtrial2.png',letter: "i"}, {cue:"anger",image:'obtrial.png',letter: "c"} ] prac = shuffle(prac); var pracheader, pracenter = main.addblock("center",30,60,80), p; for (var i = 0; i< prac.length;i++) { text("+").style("color","black"); await(500); clear(); pracheader = main.addblock("center",10,70,15,"honeydew") .text(prac[i].cue) .style("font-weight","bold"); a = pracenter.setimage(prac[i].image); a.style("width","420px"); a.style("height","420px"); p=awaitkey("c,i"); if(p.RT>3000) { pracheader.text("Please respond faster!"); pracenter.setimage('too_slow.png') .style("width","350px") .style("height","300px"); await(2000); } main.removeblock(pracheader); pracenter.clear(); } var d = main.addblock("center",20,150,60,"honeydew"); d.text("The trial ends.
" +"You may now start the task when you are ready." +"

Press SPACE to start.

"); awaitkey(" "); main.removeblock(d); var trials = [ {cue:"joy",image:'hup2.png',congruency:'congruent', cond:1, letter: "c"}, {cue:"happiness",image:'hun1.png',congruency:'incongruent', cond:2, letter:"i"}, {cue:"sadness",image:'hun2.png',congruency:'congruent',cond:1,letter:"c"}, {cue:"anger",image:'hup1.png',congruency:'incongruent',cond:2,letter:"i"}, {cue:"joy",image:'obp1.png',congruency:'congruent',cond:3, letter: "c"}, {cue:"happiness",image:'obn1.png',congruency:'incongruent',cond:4, letter:"i"}, {cue:"sadness",image:'obn2.png',congruency:'congruent',cond:3,letter:"c"}, {cue:"fear",image:'obp2.png',congruency:'incongruent',cond:4,letter:"i"}, {cue:"sadness",image:'hup3.png',congruency:'incongruent', cond:2, letter:"i"}, {cue:"neutral",image:'hup4.png',congruency:'congruent',cond:1,letter:"c"}, {cue:"anger",image:'hun3.png',congruency:'congruent',cond:1,letter:"c"}, {cue:"happiness",image:'hun4.png',congruency:'incongruent',cond:2,letter:"i"}, {cue:"joy",image:'obp4.png',congruency:'congruent',cond:3, letter: "c"}, {cue:"happiness",image:'obn3.png',congruency:'incongruent',cond:4, letter:"i"}, {cue:"anger",image:'obn4.png',congruency:'congruent',cond:3,letter:"c"}, {cue:"sadness",image:'obp3.png',congruency:'incongruent',cond:4,letter:"i"} ] trials = shuffle(trials); var headerblock, centerblock = main.addblock("center",30,60,80), a,slow,e, human_total = 0, object_total= 0, con_total = 0, incon_total = 0, con_average,incon_average; for (var i = 0; i< trials.length;i++) { text("+").style("color","black"); await(500); clear(); headerblock = main.addblock("center",10,70,15,"honeydew") .text(trials[i].cue) .style("font-weight","bold"); a = centerblock.setimage(trials[i].image); a.style("width","420px"); a.style("height","420px"); e = awaitkey("c,i"); if(e.RT>3000) { headerblock.text("Please respond faster!"); centerblock.setimage('too_slow.png') .style("width","350px") .style("height","300px"); await(2000); } logtrial(e.RT,"RT",trials[i].cond) if (trials[i].cond === 1 || trials[i].cond === 3) { con_total += e.RT; } else if(trials[i].cond === 2 || trials[i].cond === 4) { incon_total += e.RT; } if (trials[i].cond === 1 || trials[i].cond === 2) { human_total += e.RT; } else if(trials[i].cond === 3 || trials[i].cond === 4) { object_total += e.RT; } if (e.key === trials[i].letter) { logtrial(1,"Score",trials[i].cond); } else { logtrial(0,"Score",trials[i].cond); } main.removeblock(headerblock); centerblock.clear(); } con_average = con_total/8; log(con_average,"con_average"); incon_average = incon_total/8; log(incon_average,"incon_average"); await(1000); var c = main.addblock("center",20,150,60,"honeydew"); c.text('Your average reaction time for congruent trials was '+ con_average.toFixed(2)+' ms
' +'and for incongruent trials '+incon_average.toFixed(2) +' ms!'); await(5000); c.clear(); c.text("

Finish

"+"Well done! Thanks for participating!"); await(2000); main.removeblock(c)

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.

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.

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 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.

Related Experiments