Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Functions and methods for analyzes and visualization of response time (and accuracy) data.

Project Description


RTPy is a package with the aim to enabling explorations of response time (or reaction time) data collected in Psychology tasks (e.g., Stroop and Flanker tasks).


RTPy can be installed using pip:

pip install RTPy


RTPy comes with functions for visualizing response time distributions and speed/accuracy trade-offs.


import the package:

import RTPy as rt

Kernel estimation plots

rt.kde_plot(dataframe, ['Congruent', 'Incongruent'], 'RT', 'congruent', save_file=False)

Cumulative distribution function

Calculate cumulative distribution function:

data_cdf = rt.cdf(dataframe, 'congruent', conditions=['Congruent', 'Incongruent'])

Plot the cdf:


Delta Plots

Calculate the data for the plot:

data_delta = rt.calc_delta_data(dataframe, 'Sub_id', 'RT', 'congruent', conditions=['Incongruent', 'Congruent'])

Create the plot:

rt.delta_plot(data_delta, ylab='Stroop Effect (ms.)')
Release History

Release History

This version
History Node


History Node


Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting