NCMlab / experiment-demos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

experiment-demos

Repository for hosting working experiments created in jsPsych.

Experiments should be based on already published work, with an emphasis on well-known/influential studies - this is not the place for new studies.

We have two goals with this repository:

  1. Supporting Education in Experimental Psychology by providing a set of experiments that can be hosted online so that students can collect behavioral data from themselves and each other, and analyze the data, as a part of lab and programming courses.
  2. Supporting new research with jsPsych by providing inspiration and a starting point for researchers interested in using jsPsych to develop new studies.

How Do I Contribute a Study?

  1. Raise an issue here to announce the experiment that you plan to contribute. Provide enough detail so that your other contributors can know which experiment you are planning to do. After you have raised the issue, maintainers will apply label "DemoTaskDevelopment" and assign you to the issue.
  2. Make a branch of the experiment-demos repository. Add your new experiment as a subfolder at the top-level using this structure:
    experiment-demos
    └── my_experiment
        ├── Readme.md
        ├── assets
        │   ├── images
        │   └── sound
        ├── data
        ├── index.html
        ├── jspsych
        └── my_experiment_setup_eng.js
    • "my_experiment" should be a descriptive name for the experiment, all lower-case.
    • "Readme.md" should contain the following information:
      • Experiment Name
      • Who wrote it
      • Background (about the task and important citations)
      • Task Description (what happens during the task)
      • Results File Information (what is included in the output file)
      • Experimental Set-up (event-related, block design)
      • Stimuli (what the stimuli are)
      • Modifiable Parameters (what parameters are modifiable, i.e. number of trials etc.)
    • "assets" should contain any image or sound files necessary for the experiment, stored in the folders "images" and "sounds".
    • "index.html" should contain the main experiment code.
    • "jspsych" should contain the jspsych files necesserary to run the experiment.
    • "my_experiment_setup_eng.js" should be named using the name used for the experiment folder, with "eng" indicating the language (using ISO 639-3 codes). It is a JS file that contain variables for all of the modifiable parameters of the experiment. This includes text (welcome, instructions, feedback) and experiment parameters. This approach because separates everything someone might want to change for their own purposes from the main experiment code. The language code ("eng" in this case) indicates the language used for instructions etc. and make it easier for other contributors to translate the task for other languages.
  3. Make a pull request. Other contributors may reach out to you about adaptating or optimizing the experiment.

How Can I Run the Experiment?

About

License:MIT License


Languages

Language:JavaScript 74.8%Language:HTML 24.5%Language:CSS 0.7%