Coding help - calculating IAT reliability

27 views
Skip to first unread message

Gemma Crickmore

unread,
Nov 16, 2024, 3:40:09 PM11/16/24
to Minno.js
Hello,

Firstly, thank you so much for all of your useful posts about how to run an IAT in qualtrics with MinnoJS. With your help, I've successfully run my IAT and computed the D scores from the raw data using the blog post about processing the IAT data in R! Thank you so much! 

Unfortunately I'm not an R expert so I'm struggling with the final step for my study: finding a way to add to the script to calculate the reliability for my IAT, for example like the  IAT_rel() function from the ImplicitMeasures package.

Would you be able to help me with this?

Thanks so much in advance,

Gemma

Yoav Bar-Anan

unread,
Nov 26, 2024, 2:09:21 AM11/26/24
to Gemma Crickmore, Minno.js
Hi Gemma, 

Assuming you used the R script we posted here, after you get the data.frame iatscore in line 131, the iatscore should have the variables IAT1 and IAT2 for scores computed from the "practice" blocks (Blocks 3 and 6) and the "critical" blocks (Blocks 4 and 7).

From these two variables, there are multiple methods for computing reliability as internal consistency, using Spearman-Brown prophecy formula. I assume that is what iat_rel does (although this was not specified in the documentation I found).

Here are two examples:
############
# Method 1

#Compute correlation
correlation <- cor(iatscore$IAT1,  iatscore  $IAT2)

# Apply the Spearman-Brown prophecy formula
reliability <- 2 * correlation / (1 + correlation)

# Print the reliability
print(reliability)

############
# Method 2

library(psych)
# Calculate split-half reliability
split_half <- splitHalf(iatscore)
print(split_half)

Good luck,
Yoav


--
You received this message because you are subscribed to the Google Groups "Minno.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minnojs+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/minnojs/9fabc935-7c69-4ee0-a627-41de0b10d7can%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages