Skip to content

Commit 8b70a2b

Browse files
committed
feat: add d_score to the jspsych data
1 parent a43a2f0 commit 8b70a2b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • lib/socho/studies/templates

‎lib/socho/studies/templates/iat.ex‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ defmodule Socho.Studies.Templates.Iat do
333333
var d1 = (c2_practice.select('rt').mean() - c1_practice.select('rt').mean()) / sd1;
334334
var d2 = (c2_test.select('rt').mean() - c1_test.select('rt').mean()) / sd2;
335335
var d = (d1 + d2) / 2;
336+
jsPsych.data.get().push({ iat_type: 'iat_summary', d_score: d, mean_c1: mean_c1, mean_c2: mean_c2 });
336337
return "<h2>You're done \u2014 thank you!</h2>" +
337338
"<p>When <strong>#{cat1_label}</strong> and <strong>#{att1_label}</strong> were paired, " +
338339
"your average response time was <strong>" + Math.floor(mean_c1) + " ms</strong>.</p>" +

0 commit comments

Comments
 (0)