Psifr: Analysis and visualization of free recall data
Project description
Psifr
Advanced analysis and visualization of free recall data in Python.
In free recall, participants study a list of items and then name all of the items they can remember in any order they choose. Many sophisticated analyses have been developed to analyze data from free recall experiments, but these analyses are often complicated and difficult to implement.
Psifr leverages the Pandas data analysis package to make precise and flexible analysis of free recall data faster and easier. The name Psifr is pronounced "cipher". It's taken from Psi, in reference to the field of psychology, and FR for free recall.
Installation
You can install the latest stable version of Psifr using pip:
pip install psifr
You can also install the development version directly from the code repository on GitHub:
pip install git+git://github.com/mortonne/psifr
Quickstart
To plot a serial position curve for a sample dataset:
from psifr import fr
df = fr.sample_data('Morton2013')
data = fr.merge_free_recall(df)
recall = fr.spc(data)
g = fr.plot_spc(recall)
See the user guide for detailed documentation on importing and analyzing free recall datasets.
Also see the Jupyter notebooks for more analysis examples:
Importing data
Generally the best way to get your data into shape for analysis in Psifr is to create a CSV file with one row for each event in the experiment, including study events (i.e., item presentations) and all recall attempts (including repeats and intrusions). See importing data for details.
If you have data in the standard EMBAM format, use scripts/frdata2table.m
to convert your data struct to a table with standard format. Then use the Matlab function writetable
to write a CSV file which can then be read into Python for analysis.
Related projects
EMBAM
Analyses supported by Psifr are based on analyses implemented in the Matlab toolbox EMBAM.
pybeh
pybeh is a direct Python port of EMBAM that supports a wide range of analyses.
Quail
Quail runs automatic scoring of free recall data, supports calculation and plotting of some common free recall measures, and has tools for measuring the "memory fingerprint" of individuals.
Contributing to Psifr
Contributions are welcome to suggest new features, add documentation, and identify bugs. See the contributing guidelines for an overview.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.