How to measure RT in the critical region + Spillover effect

What are you trying to achieve?:

Hi. I hope you are fine.

I want to measure the RT of each region, especially regions 3 ( because it is my critical region) and 4 (because of the possible spillover effect).

@wakecarter told me that I should create a new column called Critical in my spreadsheet.

As you can see, I added region numbers. One point is that in this column region number starts from 0 to 7. In some sentences, the region number starts from 0 to 5.

The number of regions is different, but the critical region is the same.

Should I change this code if I want to measure RT of region 3 and 4?

Dear @wakecarter
Hi

I added the code here. Please tell me if I need to change the code.

Thank you

Before I make any further replies, please post what happened when you tested your current version and how that differs from what you want.

Ok.

I ran the experiment, this error appeared.

Generating PsychoPy script…

########### Running: C:\Users\hesam\Desktop\My Experiment_lastrun.py ###########
pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
9.3871 EXP Imported stimuli_1.csv as conditions, 8 conditions, 4 params
9.3883 INFO Loaded monitor calibration from [‘2023_08_14 18:25’]
9.4119 EXP Imported stimuli_1.csv as conditions, 8 conditions, 4 params
Hello from the pygame community. Contribute - pygame wiki
Sentence Everyone knew that/Meredith/read/everyplay/despite her busy schedule.
Traceback (most recent call last):
File “C:\Users\hesam\Desktop\My Experiment_lastrun.py”, line 494, in
thisExp.addData(‘Region’,region[inner_loop.thisN])
NameError: name ‘region’ is not defined
################ Experiment ended with exit code 1 [pid:20136] #################
23.9879 EXP Imported stimuli_1.csv as conditions, 8 conditions, 4 params
23.9906 INFO Loaded monitor calibration from [‘2023_08_14 18:25’]

Please tell me if I need to create a text component to define $Critical in the spreadsheet.

If your critical region is always region 3 then you don’t need it in the spreadsheet. As it is, you’ve put a list of numbers in the Critical column rather than the ciritcal region for the sentence in that row.

You could try something like this in place of thisExp.addData(‘Region’,region[inner_loop.thisN]):

if inner_loop.thisN == 3:
     thisExp.addData('Region','Critical')
elif inner_loop.thisN == 4:
     thisExp.addData('Region','Spillover')
elif inner_loop.thisN < 3:
     thisExp.addData('Region','Head')
else:
     thisExp.addData('Region','Tail')

In your analysis you can then separate the reaction times by Region.

1 Like

I want to really thank you for your help. :pray:

Now everything is specified in the data file.

I appreciate your generosity and professionalism.