A survey of experimental stimulus presentation code sharing in major areas of psychology

Amit Rawal, Vuong Truong, Yu Hui Lo, Lin Yuan Tseng, Niall W. Duncan

研究成果: 雜誌貢獻文章同行評審

摘要

Computer code plays a vital role in modern science, from the conception and design of experiments through to final data analyses. Open sharing of code has been widely discussed as being advantageous to the scientific process, allowing experiments to be more easily replicated, helping with error detection, and reducing wasted effort and resources. In the case of psychology, the code used to present stimuli is a fundamental component of many experiments. It is not known, however, the degree to which researchers are sharing this type of code. To estimate this, we conducted a survey of 400 psychology papers published between 2016 and 2021, identifying those working with the open-source tools Psychtoolbox and PsychoPy that openly share stimulus presentation code. For those that did, we established if it would run following download and also appraised the code’s usability in terms of style and documentation. It was found that only 8.4% of papers shared stimulus code, compared to 17.9% sharing analysis code and 31.7% sharing data. Of shared code, 70% ran directly or after minor corrections. For code that did not run, the main error was missing dependencies (66.7%). The usability of the code was moderate, with low levels of code annotation and minimal documentation provided. These results suggest that stimulus presentation code sharing lags behind other forms of code and data sharing, potentially due to less emphasis on such code in open-science discussions and in journal policies. The results also highlight a need for improved documentation to maximize code utility.

原文英語
頁(從 - 到)6781-6791
頁數11
期刊Behavior Research Methods
56
發行號7
DOIs
出版狀態已發佈 - 10月 2024

ASJC Scopus subject areas

  • 實驗與認知心理學
  • 發展與教育心理學
  • 藝術與人文(雜項)
  • 心理學(雜項)
  • 一般心理學

指紋

深入研究「A survey of experimental stimulus presentation code sharing in major areas of psychology」主題。共同形成了獨特的指紋。

引用此