GithubHelp home page GithubHelp logo

surveys's Introduction

Experiment Factory Surveys

An experiment factory survey is a folder with a complete set of files for deploying a web-based survey, ideal for behavioral experiments or assessments. They use Google Material Design Lite styling, and generally look like this:

.img/survey.gif

How do I create a survey?

Creating a survey is easy, all you need to do is create a tab delimited file of questions, survey.tsv, a small configuration file for the Experiment Factory to understand your survey, config.json, and then copy it into one of the standard surveys folders. For example, you can use the bis11 as a template, replacing the config.json and survey.tsv with your own.

Survey.tsv

The survey.tsv file is a TAB delimited file that must have the following fields:

  • question_type: can be one of radio, instruction, textfield, textarea, numberic, or checkbox.
  • question_text: the text to proceed the potential responses. E.g., "How anxious do you feel in airports?"
  • page_number: The page number to render the question on.
  • option_text: comma separated list of option text (what the survey taker sees) E.g., a little anxious,somewhat anxious, very anxious
  • option_values: the values assigned to each option above. E.g., 1,2,3. The length of option_text and option_values must be equal.

It helps to look at an example, and see what it renders to.

config.json

The easiest way to generate a new config.json is to copy an old folder, use it as a template, and update the fields. Generally, it looks like this:

  [
      {
          "name": "BIS-11: Barratt Impulsiveness Scale Survey",
          "template":"survey",
          "run": [
                   "https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en",
                   "https://fonts.googleapis.com/icon?family=Material+Icons",
                   "https://code.getmdl.io/1.1.1/material.blue-red.min.css",
                   "style.css",
                   "smoothness/jquery-ui-1.10.4.custom.min.css",
                   "https://code.jquery.com/jquery-2.2.4.min.js",
                   "https://code.getmdl.io/1.1.1/material.min.js",
                   "jquery-ui-1.10.4.custom.min.js",
                   "jquery.wizard.js",
                   "https://cdnjs.cloudflare.com/ajax/libs/jquery.form/3.50/jquery.form.min.js",
                   "https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.12.0/jquery.validate.min.js"
                 ],
          "exp_id": "bis11_survey",
          "cognitive_atlas_task_id": "trm_55a6a8e81b7f4",
          "contributors": [
                           "Zeynep Enkavi",
                           "Ian Eisenberg",
                           "Patrick Bissett",
                           "Vanessa Sochat",
                           "Russell Poldrack"
                          ], 
          "time":999,
          "experiment_variables": "",
          "reference": "http://www.impulsivity.org/measurement/bis11",
          "notes": "",
          "publish":"True",
          "deployment_variables":{"material_design":
                                 {"fullscreen": true}
                         }

     }
  ]

For a simple survey, you can basically leave everything as is but update the name, exp_id and cognitive_atlas_task_id (we recommend you add your paradigm to the Cognitive Atlas to add supporting information and meta-data and use the unique id to link to it. Remember that the folder name (corresponding to the exp_id) must be all lowercase, with no special characters, and use "_" (underscores) instead of spaces.

Complete details are available

Validation and testing

You can use the Experiment Factory command line tools to test and preview your survey, and validate your config.json. Details are available.

supplementary files

If you have additional images, audio files, or media, just put them somewhere in your experiment folder, and link to them with relative paths in any relevant files.

Issues or Questions?

Reach our to us! Post an issue

surveys's People

Contributors

ianeisenberg avatar rwblair avatar vsoch avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

surveys's Issues

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.