Skip to content

About

Data, stimuli generation scripts, PsychoJS experiment files, and R analysis pipeline for MegaSL, a visual statistical learning megastudy

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Mega-SL: a Visual Statistical Learning (VSL) Mega-Study

This repository contains the complete experimental code, Transition-Probability (TP) matrices generation pipelines, documentation of matrices and conditions used in the megastudy, cleaned datasets, modeling scripts, and figure/table generation pipelines for Mega-SL.

The project investigates human statistical learning across diverse quasi-regular visual environments varying continuously in TPs and entropy measures.


Directory Map

For detailed file inventories, specific parameters, and workflow details, refer to the README.md files located within the subdirectories.

  • CreatingMatrices&Streams/
    Contains Julia scripts for constructing the theoretical TP matrices and generating trial streams and documentation based on the matrices. (See subdirectory README for algorithmic details).

  • FilesOfSelected(Created)Matrices/
    Contains the finalized TP matrices, the sequence specifications of exposure and test trials, and documentation of different regularity measures of the matrices and the test trials. (See subdirectory README for file index and explanation).

  • vsl_stream/
    Contains the online PsychoPy/PsychoJS experiment source code, including task loops, visual shape assets, attention checks, familiarity rating trials, and demographic survey forms. Also includes a de-identified version of the 'data' sub-directory, with raw data where prolific-ids were removed. (See vsl_stream/README.md for file details).

  • PrimaryData/
    Contains the pre-processed datasets (exposure_data, lie_data, test_data, demo_lang_data) as well as the post-exclusion, scaled analysis datasets (test_data_clean, demo_lang_excl_data) in .csv and .rds formats. (See PrimaryData/README.md for full dataset and variable descriptions).

  • Analysis/
    Contains the R analysis pipeline (Analysis/code/) for data pre-processing, participant exclusion logic, primary/secondary mixed-effects (clmm) modeling scripts, and APA figure/table generation, along with generated outputs (models/, figures/, tables/). (See Analysis/README.md or Analysis/code/README_Analysis.md for full execution and pipeline details).


Quick Start & Reproducibility

Analysis Workflow (R / RStudio)

All data processing, modeling, and visualization take place inside the R environment.Open Project:

  1. Open VSL_MegaStudy.Rproj in RStudio to ensure correct relative pathing via the here package.
  2. Install Dependencies:
install.packages(c(
  "tidyverse", "ordinal", "ggeffects", "hexbin", "extrafont", 
  "cowplot", "ggbeeswarm", "flextable", "officer", "effectsize", "here"
))
  1. Run Pipeline: Execute scripts inside Analysis/code/ in the following sequence: pre_processing.R $\rightarrow$ processing.R $\rightarrow$ data_analysis_used.r / data_analysis_full.r $\rightarrow$ plotting.r & tables.Rmd

    You can skip pre_processing.R and/or processing.R and/or data_analysis_.r files and start from a later script, since their outputs are already included in the repository.

Note: The computational matrix generation (CreatingMatrices&Streams/) was performed in Julia. However, running Julia is not required to reproduce the study's results, as all resulting matrices are pre-computed in FilesOfSelected(Created)Matrices/.


Ethics & Open Science Statement

This study received ethical approval from the Ethics Board at The Hebrew University of Jerusalem. All participant data provided in this repository are de-identified using randomly assigned alphanumeric participant IDs in compliance with standard privacy protocols.


Contact - Corresponding Author

Natan Ilani Shames (Corresponding Author)
Department of Psychology
The Hebrew University of Jerusalem
Email: natan.ilani@mail.huji.ac.il Permanent/Fallback Email: natanilani@gmail.com

License

All datasets, stimulus materials, transition matrices, and documentation in this repository are licensed under the Creative Commons Attribution 4.0 International License (CC-BY 4.0) (see LICENSE). All R, Julia, and PsychoJS analysis and experiment scripts are licensed under the MIT License.

About

Data, stimuli generation scripts, PsychoJS experiment files, and R analysis pipeline for MegaSL, a visual statistical learning megastudy

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages