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.
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. (Seevsl_stream/README.mdfor 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.csvand.rdsformats. (SeePrimaryData/README.mdfor 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/). (SeeAnalysis/README.mdorAnalysis/code/README_Analysis.mdfor full execution and pipeline details).
All data processing, modeling, and visualization take place inside the R environment.Open Project:
- Open VSL_MegaStudy.Rproj in RStudio to ensure correct relative pathing via the
herepackage. - Install Dependencies:
install.packages(c(
"tidyverse", "ordinal", "ggeffects", "hexbin", "extrafont",
"cowplot", "ggbeeswarm", "flextable", "officer", "effectsize", "here"
))-
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.RmdYou 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/.
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.
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
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.