Code Monkey home page Code Monkey logo

jspsych-libet's Introduction

UPDATE, NOV 2021

The new and improved version of this plugin, which is compatible with jsPsych 7.0, can be found at https://github.com/jspsych/jspsych-contrib/tree/main/packages/plugin-libet-intentional-binding. I'll leave this version here for now, but the documentation for the new version is much more complete.

jspsych-libet

A jsPsych plugin for measuring intentional binding using a Libet clock.

Parameters

Parameter Type Default Value Description
cond_bo string 'baseline' Specifies whether the condition is "baseline" or "operant"
cond_kt string 'key' Specifies whether the condition is "key" or "tone"
tone_file audio file undefined The tone file to be played
hand_est boolean true If true, the participant will produce their estimate by moving the clock hand themselves
instructions HTML string '' if hand_est is true, participants will be shown these instructions during estimation

Data generated

Name Type Value
keypress_ms numeric The time, in milliseconds, at which the participant pressed a key
theta_keypress numeric The angle of the clock hand, in radians, when the participant pressed a key
tone_ms numeric The time, in milliseconds, at which the tone began to play
theta_tone numeric The angle of the clock hand, in radians, when the tone began to play

Examples

Allowing the participant to move the clock hand to estimate the time of a tone

var trial = {
    type: 'libet',
    tone_file: 'tone.mp3',
    cond_bo: 'operant',
    cond_kt: 'tone',
    hand_est: true
};

Trial with written estimate of clock location at time of tone

var trial = {
    type: 'libet',
    tone_file: 'tone.mp3',
    cond_bo: 'operant',
    cond_kt: 'tone',
    hand_est: false
};
var estimation = {
  type: 'survey-text',
  questions: [
    {prompt: "What number was the clock hand pointing at when the tone played?"}
  ],
};

jspsych-libet's People

Contributors

kinleyid avatar john-veillette avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.