Skip to content

MATLAB code to fit psychometric curves to landmark task data. Republished from the Open Science Framework.

License

Notifications You must be signed in to change notification settings

matteo-d-m/curves-guidali-etal-2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Psychometric curves fitting

This repository contains my personal copy of MATLAB code that I wrote for Guidali et al. (2023) and that has already been published on the Open Science Framework (OSF) at this HTTPS URL (Task and script/PSE script).

Broadly speaking, the code in this repository preprocesses behavioural data from a computerized landmark task (LM), fits them with psychometric curves, and plots the results. Please refer to either Guidali et al. (2023) or the associated OSF project page for details.


The code is organized as follows:

  • Dependencies is a folder containing MATLAB code files (.m) with functions to:
    • Preprocess LM data
    • Compute dependent variables
    • Fit psychometric curves
    • Draw and display psychometric curves
  • fit_psyfunc_ccpas_master.m calls the functions contained by Dependencies, in the right order

Running fit_psyfunc_ccpas_master.m is enough to reproduce the results described by Guidali et al. (2023). Raw input data can be found on the OSF project page.

Please preserve the current directory structure to minimize the risk of code breaking.

Note that:

  • The code in this repository is just my personal copy of the one published on the OSF. The official archive of supplementary materials (including code) for Guidali et al. (2023) is the one on the OSF
  • The code in this repository can be reused under the terms described by the original license (CC-BY-4.0), which you can read on the OSF project page. Should you reuse this code in published work, please cite the scientific publication by Guidali et al. (2023)
  • Several functions contained in Dependencies are tailored to data stored with the directory structure and nomenclature used by Guidali et al. (check OSF). Should you reuse the code on different data stored with different criteria, those steps are likely to become suboptimal or useless

Dependencies:

Language/Package Version tested on
MATLAB R2022a
Curve Fitting Toolbox R2022a

About

MATLAB code to fit psychometric curves to landmark task data. Republished from the Open Science Framework.

Topics

Resources

License

Stars

Watchers

Forks

Languages