Only half of the filler items have comprehension Qs. Is it possible?

Hi everybody.

In my experiment, I developed some comprehension questions to check if participants are attentive.

After all the experimental sentences, a comprehension question for each sentence appears.

When it comes to filler items, I want to have comprehension questions for only half of the filler sentences.

If you look at the following screenshot, you’ll notice that I don’t have a question for the sentence *The children from that school in the village hunted colorful butterflies in the park. *

Although the sentence does not have a question, the comprehension question for the previous item appears for this sentence.

Is there a solution to tell Psychopy that I need comprehension Qs for only half of the fillers?

I appreciate any help in advance.

I might put an x or something in the column when there isn’t a question and then have some code in the comprehension routine like:

Begin Routine

if Questions == 'x':
     continueRoutine = False

Alternatively you could skip the question randomly using if random() > 0.5:

1 Like

Thank you for your help

I added X and used the code.

Now, the questions for the previous sentence again appears. The answer to that question will be wrong, regardless of whether participants choose the “yes” or “no”.

I wish I could ask questions for only half of my filler items.

Participants may get confused when they see the comprehension question for the previous item again appears.

I guess I should develop comprehension Qs for all the filler items. Am I right?

If you think there is a solution for this, I would be really grateful if you could tell me.

Your code component should be above the text component.

Please show some screenshots of what you are trying (your flow, the feedback routine, code component, etc)

1 Like

Sure, I will share it now.

This is the screenshot of my spreadsheet.

This is the screenshot of my experiment (I have just moved the code to the top). I entered the code in the Comprehension Routine.

Experiment.psyexp (40.0 KB)

@wakecarter
Hi. I hope you are having a great day.

I am wondering if I followed the steps that you told me or not.

I would be really grateful if you could help me.

Thank you

Sorry – I’ve just looked and I can’t see any issues that would mean you’d see the wrong questions if they are in the right row in the spreadsheet. Do the values look correct in the data file?

1 Like

thank you. thank you.

I tried it again. The problem is solved.

sorry, I have another question.

I looked at the auto-generated data file. In the response column, Psychopy considered the sentence which did not have any question as correct.

If I want to run a statical analysis on SPSS or R, will this not cause a problem?

I mean, can we consider only the responses to items which had questions?

Thanks

You could filter out those trials

1 Like