IAT


Author
Message
jolimie971
jolimie971
Respected Member (474 reputation)Respected Member (474 reputation)Respected Member (474 reputation)Respected Member (474 reputation)Respected Member (474 reputation)Respected Member (474 reputation)Respected Member (474 reputation)Respected Member (474 reputation)Respected Member (474 reputation)
Group: Forum Members
Posts: 4, Visits: 28
Hello !


Thank you Dave I tried your script and that is exactly what I wanted. Thank you also for the tips I'll use this script (with maybe an obligation to go faster than 3500 sec) only for a learning exercise and not for the all task.


Cordially,
Mandy

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 109K
> I've tried with /ontrialend = if(trial.mytrial.latency >=1500) trial.mytrial.error =true). Nothing happen, and I can see another way to do

This is completely broken syntax and ought not actually do anything.

#1: You cannot display anything (such as an error message) via /ontrialend. That's simply not what the attribute is supposed to do.

#2: The syntax in your code is wrong on a number of levels:

- missing parentheses / braces
/ ontrialend = [ if (trial.mytrial.latency >= 1500) ... ]

- the trial elements error property is read-only. It reflects wheter an error occurred in the given trial or not (in case of an IAT whether the participant pressed the correct key or not) . Trying to set it to true or false after the fact as in

trial.mytrial.error =true

will not (and should not) work. Inquisit will even give you an explicit error message to the effect:

ERROR: Expression 'trial.mytrial.error' is invalid. The expression attempts to set the value of read-only property.

What you'll probably want to do is /branch to a separate <trial> element in case of latency exceeding your given threshold as in

<block myblock>
/ trials = [1-10=mytrial]
</block>

<trial mytrial>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
/ branch = [if (trial.mytrial.latency >= 1500) trial.tooslowtrial]
</trial>

<trial tooslowtrial>
/ stimulusframes = [1=tooslowtext]
/ validresponse = (noresponse)
/ trialduration = 500
</trial>

<text mytext>
/ items = ("Press the spacebar as quickly as possible.")
</text>

<text tooslowtext>
/ items = ("You are too slow... Try harder.")
</text>

Finally, two further points:

- Given that conventionally only latencies greater 10000ms are considered outliers in IATs (and hence are excluded from the computations to derive the D-score), 1500ms doesn't look awfully slow.

- If you go ahead and implement the above /branch in your IATs, be aware that you'll have to make other adjustments to the script to accommodate for the change. In particular, you need to pay attention to the various values involved in deriving D and make sure that latencies stemming from the added 'tooslow' trial element are properly excluded from those computations.



jolimie971
jolimie971
Respected Member (474 reputation)Respected Member (474 reputation)Respected Member (474 reputation)Respected Member (474 reputation)Respected Member (474 reputation)Respected Member (474 reputation)Respected Member (474 reputation)Respected Member (474 reputation)Respected Member (474 reputation)
Group: Forum Members
Posts: 4, Visits: 28
Hello,



I'm a French student user of inquisit since 2 years, I'm trying to do a simple IAT test. As it's for people with cognitive disabilities I want it to show an error message
if the response latency go over 1500ms. I've tried with /ontrialend = if(trial.mytrial.latency >=1500) trial.mytrial.error =true). Nothing happen, and I can see another way to do
it, if someone could share an idea ?

Thank you,
Mandy

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search