Millisecond Forums » Millisecond Forums » Inquisit 3 » GNAT sample scripts for calculating d?InstantForum 2017-1 FinalMillisecond Forumshttps://forums.millisecond.com/Millisecond ForumsSun, 03 Dec 2023 10:49:29 GMT20RE: GNAT sample scripts for calculating d?https://forums.millisecond.com/Topic5419.aspx<p>Since I've been doing some related work anyway, I might as well throw this in here. If anyone really, really, really needs to compute p or z values for whatever reason, Inquisit syntax for the standard normal CDF and its inverse is provided below. The code is based on Aludaat & Alodat (2008). More accurate algorithms are available, but I prefer these approximations because they're (a) relatively concise and (b) accurate enough for most purposes in psychology and related fields. Warning to unsuspecting readers: If you don't understand what this code does, chances are you don't need it.</p>
<p style="padding-left: 30px;"><span style="font-family: courier new,courier;"># Normal CDF and Inverse Normal CDF functions<br /># This code is based on the approximations given in Aludaat & Alodat (2008).<br /># Results should be accurate to about two decimal places, with larger deviations <br /># for extreme values. This code is provided without any warranty.<br /><br /># expressions.p_z computes p given z<br /># expressions.z_p computes z given p<br /><br /><expressions><br />/ p_z = if(values.z>0) 0.5*(1+sqrt((1-exp(-sqrt(m_pi/8)*pow(values.z,2))))) else<br /> 1-0.5*(1+sqrt((1-exp(-sqrt(m_pi/8)*pow(values.z,2)))))<br />/ z_p = if(expressions.p_z>0.5) sqrt(-ln(1-pow(2*expressions.p_z-1,2))/sqrt(m_pi/8)) else <br /> -sqrt(-ln(1-pow(2*expressions.p_z-1,2))/sqrt(m_pi/8))<br /></expressions><br /><br /><values><br />/ z = 0.6<br /></values><br /><br /><text mytext><br />/ items = ("z = <%values.z%> | p_z = <%expressions.p_z%> | z_p = <%expressions.z_p%>")<br /></text><br /><br /><trial mytrial><br />/ stimulusframes = [1=mytext]<br />/ validresponse = (anyresponse)<br /></trial></span></p>
<p>Regards,</p>
<p>~Dave</p>Fri, 04 Feb 2011 07:44:16 GMTDaveRE: GNAT sample scripts for calculating d?https://forums.millisecond.com/Topic5371.aspx<p>Just a quick comment on computing d prime in Inquisit. As Dave suggested, this can't be done with the current set of built in functions available in Inquisit. Specifically, Inquisit lacks a function for computing the Z score, which is required for computing d prime. This will likely be added to a future release. </p>
<p>-Sean</p>Sat, 29 Jan 2011 12:17:17 GMTseandrRE: GNAT sample scripts for calculating d?https://forums.millisecond.com/Topic5366.aspx<p>GNAT data may be summarized by calculating d' (d prime), a measure of sensitivity common in signal detection theory (SDT). Nosek & Banaji (2001) discuss analysis of GNAT data at length. Whether an accuracy based measure like d' or a latency based measure should be used depends on the specifics of your GNAT procedure. Note that d' is neither identical to the IAT D score measure nor Cohen's d (a measure of effect size). Because of the underlying distributional assumptions, calculating d' requires some advanced mathematical functions available in popular stats software, but not Inquisit (which is primarily a data collection, not a data analysis tool). Pulling this off in Inquisit would be very awkward if at all possible. SPSS syntax is available from the GNAT page at millisecond.com or Brian Nosek's site at Project Implicit.
</p>
<p>
Regards,
</p>
<p>~Dave</p>Fri, 28 Jan 2011 14:43:17 GMTDaveGNAT sample scripts for calculating d?https://forums.millisecond.com/Topic5365.aspx<p>Hello out there, </p>
<p>Does anyone have a sample script (or know of an article that discusses this) for calculating a d score at the end of a GNAT? What I am hoping is for participants to see their d score (and perhaps an interpretation) upon completion of the test. I am also a little confused about whether the error rate alone, or the response latencies alone, or some combination of both - is the best way to score a GNAT. </p>
<p>On a related note . . . is there SPSS information for GNAT data? </p>
<p>Thanks for the help.</p>
<p>JC</p>Fri, 28 Jan 2011 13:24:35 GMTJay