Question for SC-IAT Coding


Author
Message
DummyCoder
DummyCoder
Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)
Group: Forum Members
Posts: 3, Visits: 35
Hello, 

I have been trying to get a Single Category - IAT code to work but I have been having problems with one of the errors in the script. I used the template provided by the Single Category Picture IAT in the library section on the website but the same error occurs when I try to run the script even when I have not made any adjustments (although running the test online works).

Here's the part of the code that has the error: 

<expressions>
/ m1 = values.sum1 / values.n1
/ m2 = values.sum2 / values.n2
/ sd1 = sqrt((values.ss1 - (values.n1 * (expressions.m1 * expressions.m1))) / (values.n1 - 1))
/ sd2 = sqrt((values.ss2 - (values.n2 * (expressions.m2 * expressions.m2))) / (values.n2 - 1))
/ sd = sqrt((((values.n1 - 1) * (expressions.sd1 * expressions.sd1) + (values.n2 - 1) * (expressions.sd2 * expressions.sd2)) + ((values.n1 + values.n2) * ((expressions.m1 - expressions.m2) * (expressions.m1 - expressions.m2)) / 4) ) / (values.n1 + values.n2 - 1) )
/ d = (m2 - m1) / expressions.sd
/ latdiff = m2 - m1
/ attitude = "unknown"
/ percentcorrect = (values.n_correct/ (block.compatibletest.trialcount + block.incompatibletest.trialcount)) * 100
</expressions>

And the error is: Expressions 'computer.touch' is invalid. Expression contains an unknown element or property name. 

Thank you for your help in advance!

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Reading This Topic

Explore
Messages
Mentions
Search