GithubHelp home page GithubHelp logo

pazams / iat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from winteram/iat

0.0 0.0 0.0 399 KB

Online IAT

License: MIT License

ApacheConf 0.21% R 1.43% HTML 9.91% PHP 27.84% CSS 2.91% JavaScript 55.73% Shell 1.97%

iat's Introduction

PROJECT INFO:

OVERVIEW:

This is meant to be an easy-to-use implicit association test (see Greenwald, McGhee, & Schwartz, 1998) for use by interested psychologists. The flow of the test is driven by javascript, and participant responses are stored in a comma-delimited text file. At the end of the test, a simple effect size is calculated to determine the participant's tendency to find two categories more congruent than the other two categories.

To create and modify versions of the IAT, and to make them available to participants, the experimenter can direct their browser to the "experimenter.php" file.

REQUIREMENTS:

Server-side: PHP (with permission to write files in directory) (optional) MySQL with root access Client-side: Javascript-enabled web browser

USE:

  1. copy the folder to a publicly accessible folder on your web server

  2. from a shell prompt (i.e., Terminal in Mac or Linux, PuTTy in Windows) type 'sh setup.sh'

  3. create a new version of the IAT using the experimenter tool (Direct your browser to [yourserver.com]/IAT/experimenter.php)

  4. [only necessary if IAT uses images] After creating the template, upload the images to the folder "IAT/[template name]/img"

  5. Direct participants to your IAT! (e.g., [yourserver.com]/IAT)

OUTPUT:

The output files are in the "output" folder within the template folder for the active IAT.
The columns are as follows:

  • Trial #
  • Round #
  • Category Label
  • Category Index (which item within the category)
  • Errors
  • Reaction Time (in milliseconds)

Instruction to run locally:

Prerequisites: git-scm, docker. Inside *nix terminal or windows command-line, cd into a directory of yours and:

git clone https://github.com/pazams/IAT.git
cd IAT
docker build -t my-iat .
docker run -d -p 3000:80 --name my-running-iat my-iat
docker exec -it my-running-iat bash
# following 2 line inside docker image
sh setup.sh 
exit

now, in your browser navgiate to these urls:

Note this setup is for local environment.

For production environment, additional security measures are needed. It is recommended to deny direct access to some php files. Read more about it here. Also it is advised to remove experimenter.php in production, or add authentication layer.

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.