首页 > 解决方案 > 如何获取数据以进行更多分析?

问题描述

我必须修改现有的 jsPsych 实验来总结不同条件下的反应时间。

我想我可以从编写一个在 jsPsych.init() 中调用的简单函数开始,我将其命名为 extractingData()。我在控制台中收到此消息:“未捕获的 TypeError:jsPsych.data.get 不是函数”

这是行:

var myData = jsPsych.data.get().filter({trial_type: 'poldrack-single-stim'}).filterCustom(function(x){return x.trial_num > 0});

在 jsPsych 官方文档中,他们提供了这个例子:

var data = jsPsych.data.get().filter({trial_type: 'image-keyboard-response'}).filterCustom(function(x){ return x.rt > 100; });

任何帮助将不胜感激。提前致谢。

标签: javascriptjspsych

解决方案


推荐阅读