Cargando…
Running Online Behavioral Experiments Using R: Implementation of a Response-Time Decision Making Task as an R-Shiny App
Online experiments allow for fast, massive, cost-efficient data collection. However, uncontrolled conditions in online experiments can be problematic, particularly when inferences hinge on response-times (RTs) in the millisecond range. To address this challenge, we developed a mobile-friendly open-s...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Ubiquity Press
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8740653/ https://www.ncbi.nlm.nih.gov/pubmed/35083412 http://dx.doi.org/10.5334/joc.200 |
_version_ | 1784629350500401152 |
---|---|
author | Santangelo, Agustín Perez Solovey, Guillermo |
author_facet | Santangelo, Agustín Perez Solovey, Guillermo |
author_sort | Santangelo, Agustín Perez |
collection | PubMed |
description | Online experiments allow for fast, massive, cost-efficient data collection. However, uncontrolled conditions in online experiments can be problematic, particularly when inferences hinge on response-times (RTs) in the millisecond range. To address this challenge, we developed a mobile-friendly open-source application using R-Shiny, a popular R package. In particular, we aimed to replicate the numerical distance effect, a well-established cognitive phenomenon. In the task, 169 participants (109 with a mobile device, 60 on a desktop computer) completed 116 trials displaying two-digit target numbers and decided whether they were larger or smaller than a fixed standard number. Sessions lasted ~7-minutes. Using generalized linear mixed models estimated with Bayesian inference methods, we observed a numerical distance effect: RTs decreased with the logarithm of the absolute difference between the target and the standard. Our results support the use of R-Shiny for RT-data collection. Furthermore, our method allowed us to measure systematic shifts in recorded RTs related to different OSs, web browsers, and devices, with mobile devices inducing longer shifts than desktop devices. Our work shows that precise RT measures can be reliably obtained online across mobile and desktop devices. It further paves the ground for the design of simple experimental tasks using R, a widely popular programming framework among cognitive scientists. |
format | Online Article Text |
id | pubmed-8740653 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | Ubiquity Press |
record_format | MEDLINE/PubMed |
spelling | pubmed-87406532022-01-25 Running Online Behavioral Experiments Using R: Implementation of a Response-Time Decision Making Task as an R-Shiny App Santangelo, Agustín Perez Solovey, Guillermo J Cogn Research Article Online experiments allow for fast, massive, cost-efficient data collection. However, uncontrolled conditions in online experiments can be problematic, particularly when inferences hinge on response-times (RTs) in the millisecond range. To address this challenge, we developed a mobile-friendly open-source application using R-Shiny, a popular R package. In particular, we aimed to replicate the numerical distance effect, a well-established cognitive phenomenon. In the task, 169 participants (109 with a mobile device, 60 on a desktop computer) completed 116 trials displaying two-digit target numbers and decided whether they were larger or smaller than a fixed standard number. Sessions lasted ~7-minutes. Using generalized linear mixed models estimated with Bayesian inference methods, we observed a numerical distance effect: RTs decreased with the logarithm of the absolute difference between the target and the standard. Our results support the use of R-Shiny for RT-data collection. Furthermore, our method allowed us to measure systematic shifts in recorded RTs related to different OSs, web browsers, and devices, with mobile devices inducing longer shifts than desktop devices. Our work shows that precise RT measures can be reliably obtained online across mobile and desktop devices. It further paves the ground for the design of simple experimental tasks using R, a widely popular programming framework among cognitive scientists. Ubiquity Press 2022-01-07 /pmc/articles/PMC8740653/ /pubmed/35083412 http://dx.doi.org/10.5334/joc.200 Text en Copyright: © 2022 The Author(s) https://creativecommons.org/licenses/by/4.0/This is an open-access article distributed under the terms of the Creative Commons Attribution 4.0 International License (CC-BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. See http://creativecommons.org/licenses/by/4.0/. |
spellingShingle | Research Article Santangelo, Agustín Perez Solovey, Guillermo Running Online Behavioral Experiments Using R: Implementation of a Response-Time Decision Making Task as an R-Shiny App |
title | Running Online Behavioral Experiments Using R: Implementation of a Response-Time Decision Making Task as an R-Shiny App |
title_full | Running Online Behavioral Experiments Using R: Implementation of a Response-Time Decision Making Task as an R-Shiny App |
title_fullStr | Running Online Behavioral Experiments Using R: Implementation of a Response-Time Decision Making Task as an R-Shiny App |
title_full_unstemmed | Running Online Behavioral Experiments Using R: Implementation of a Response-Time Decision Making Task as an R-Shiny App |
title_short | Running Online Behavioral Experiments Using R: Implementation of a Response-Time Decision Making Task as an R-Shiny App |
title_sort | running online behavioral experiments using r: implementation of a response-time decision making task as an r-shiny app |
topic | Research Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8740653/ https://www.ncbi.nlm.nih.gov/pubmed/35083412 http://dx.doi.org/10.5334/joc.200 |
work_keys_str_mv | AT santangeloagustinperez runningonlinebehavioralexperimentsusingrimplementationofaresponsetimedecisionmakingtaskasanrshinyapp AT soloveyguillermo runningonlinebehavioralexperimentsusingrimplementationofaresponsetimedecisionmakingtaskasanrshinyapp |