OSCR

Statistics in Motion: Does the Infant Motor System Predict Actions Based on Their Transitional Probability?

Code ↔ Paper

2 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 2 matches · 1 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
  1. [1] § Data Analysis › Analysis ↔ StatisticalAnalysis/Mu_cluster_comparison.R, lines 24–82 · score 0.70 · small cluster, central cluster, AIC, linear, mu, models
  2. [2] § Data Analysis › EEG Processing ↔ EEG/ChannelRejectionSummary.m, the whole file · a weak match · score 0.69 · FieldTrip, interpolated channels, SD, rejection, occipital, EEG

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

R · 82 lines · 2.8 KB · no license · 1 match

  1. ####### Libraries ---------------------------------------------------------------
  2. library(lme4)
  3. library(lmerTest)
  4. library(easystats)
  5. library(tidyverse)
  6. ####### Set and read data ---------------------------------------------------------------
  7. find_project_dir <- function(path = getwd()) {
  8. path <- normalizePath(path, winslash = "/", mustWork = TRUE)
  9. repeat {
  10. if (file.exists(file.path(path, "README.md")) && dir.exists(file.path(path, "StatisticalAnalysis"))) {
  11. return(path)
  12. }
  13. parent <- dirname(path)
  14. if (identical(parent, path)) stop("Could not find Statistics-in-Motion project directory.")
  15. path <- parent
  16. }
  17. }
  18. project_dir <- find_project_dir()
  19. data_dir <- normalizePath(file.path(project_dir, "..", "..", "Data", "ProcessedBids"), winslash = "/", mustWork = TRUE)
  20. results_dir <- file.path(project_dir, "Results")
  21. dir.create(results_dir, recursive = TRUE, showWarnings = FALSE)
  22. files = list.files(data_dir, pattern = "*DFmu.csv", recursive = TRUE, full.names = TRUE)
  23. df = map_dfr(files, read_csv,show_col_types = FALSE)
  24. # Make Probabilities more understandable
  25. df$Probability = df$Trial
  26. df[df['Probability']==1,'Probability'] = 25
  27. df[df['Probability']==2,'Probability'] = 50
  28. df[df['Probability']==3,'Probability'] = 75
  29. df[df['Probability']==4,'Probability'] = 100
  30. df$Probability = factor(df$Probability) # categorical for anova
  31. ####### Multiple clusters ---------------------------------------------------------------
  32. ## Clusters
  33. Cluster.s = c('C3' , 'Cz', 'C4')
  34. Cluster.c = c('FC1' , 'CP1', 'Cz', 'FC2', 'CP2')
  35. Cluster.l = c('FC1' , 'CP1', 'C3', 'FC5', 'CP5')
  36. Cluster.r = c('FC2', 'CP2', 'C4', 'FC6', 'CP6')
  37. df.s = df[df$Channels %in% Cluster.s,] # small cluster
  38. df.c = df[df$Channels %in% Cluster.c,] # big central cluster
  39. df.l = df[df$Channels %in% Cluster.l,] # big left cluster
  40. df.r = df[df$Channels %in% Cluster.r,] # big right cluster
  41. ####### Run Linear Models ---------------------------------------------------------------
  42. ### The models
  43. `C4, Cz, C3` = lmer(Power ~Probability +(1|Id/Channels),data=df.s)
  44. `FC1, C3, CP1, Cz, FC2, C4, CP2` = lmer(Power ~Probability +(1|Id/Channels),data=df.c)
  45. `FC1, CP1, C3, FC5, CP5` = lmer(Power ~Probability + (1|Id/Channels),data=df.l)
  46. `FC2, CP2, C4, FC6, CP6` = lmer(Power ~Probability +(1|Id/Channels),data=df.r)
  47. comp = as.data.frame(compare_performance(`C4, Cz, C3`,`FC1, C3, CP1, Cz, FC2, C4, CP2`,`FC1, CP1, C3, FC5, CP5`,`FC2, CP2, C4, FC6, CP6`, metrics ='AIC'))
  48. ggplot(comp, aes(x=Name, y= AIC, fill= Name))+
  49. geom_bar(stat = 'identity')+
  50. scale_x_discrete('Clusters')+
  51. scale_fill_colorhex_d()+
  52. theme_minimal(base_size = 20)+
  53. theme(legend.position = "none")
  54. ggsave(file.path(results_dir, "Mu_Comparison.png"),
  55. device = "png", width = 40, height = 25, units = "cm",dpi=500)

Mu_cluster_comparison.R at commit 015ccdf, no license · at the source

Overview

  1. Centre for Brain and Cognitive Development Birkbeck University of London London UK
  2. Donders Institute for Brain, Cognition and Behaviour Radboud University Nijmegen Nijmegen the Netherlands
  3. School of Psychology Keele University Keele UK
  4. School of Psychology Cardiff University Cardiff UK
Institutions: Radboud University Nijmegen (Netherlands); Donders Institute for Brain, Cognition and Behaviour (Netherlands); Birkbeck, University of London (United Kingdom); Keele University (United Kingdom); Cardiff University (United Kingdom)
Dates: received 11 March 2025; accepted 16 July 2026; published online 10 August 2026; in print 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1111/infa.70114 · PMID 42576376 · PMCID PMC13457992 · OpenAlex W4321330255
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), human (organism), developmental (subfield)
Methods: Spectral & time-frequency, Statistics, Smoothing, state filtering, decompositions, Preprocessing
Keywords: action prediction, infants' action understanding, mu rhythm, predictive processing, statistical learning, transitional probability
MeSH: Child Development*, Learning*, Motor Activity*, Electroencephalography, Female, Humans, Infant, Male, Probability (* major topic)
Topic: Child and Animal Learning Development (Developmental and Educational Psychology, Psychology), according to OpenAlex
Funding: Horizon 2020 Marie Skłodowska (765298)
Citations: cited by 1 paper (Europe PMC); 70 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repository

Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.

TommasoGhilardi/Statistics-in-Motion

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 015ccdf9eabed322a00ac01179ae60bae34cb977, 29 July 2026
Languages: MATLAB (13), R (5)
Size: 23 files, 18 scripts
Software Heritage: not archived
Found in: “Data Availability Statement”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: FieldTrip (9 files), easystats (5 files), tidyverse (5 files), cowplot (4 files), brms (3 files), lme4 (3 files), lmerTest (3 files), Signal Processing Toolbox (1 file), Stan (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
19 files

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 18 scripts, each with its path and the digest of its content;
  • 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Code and data availability statement

The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1111/infa.70114.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 2, 28 September 2026

  • Publisher: n/a → Wiley

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 6 keywords, 9 MeSH terms, 1 funder, 69 references.

Cite

This paper

Ghilardi, T., Meyer, M., Monroy, C. D., Gerson, S. A., & Hunnius, S. (2026). Statistics in Motion: Does the Infant Motor System Predict Actions Based on Their Transitional Probability? Infancy : the official journal of the International Society on Infant Studies, 31(4), e70114. https://doi.org/10.1111/infa.70114

BibTeX

@article{ghilardi2026statistics,
author = {Ghilardi, Tommaso and Meyer, Marlene and Monroy, Claire D. and Gerson, Sarah A. and Hunnius, Sabine},
title = {{Statistics in Motion: Does the Infant Motor System Predict Actions Based on Their Transitional Probability?}},
journal = {Infancy : the official journal of the International Society on Infant Studies},
year = {2026},
month = jul,
volume = {31},
number = {4},
pages = {e70114},
publisher = {Wiley},
issn = {1525-0008},
doi = {10.1111/infa.70114},
url = {https://doi.org/10.1111/infa.70114},
pmid = {42576376},
pmcid = {PMC13457992}
}

RIS

TY - JOUR
AU - Ghilardi, Tommaso
AU - Meyer, Marlene
AU - Monroy, Claire D.
AU - Gerson, Sarah A.
AU - Hunnius, Sabine
TI - Statistics in Motion: Does the Infant Motor System Predict Actions Based on Their Transitional Probability?
T2 - Infancy : the official journal of the International Society on Infant Studies
J2 - Infancy
PY - 2026
DA - 2026/07/01
VL - 31
IS - 4
SP - e70114
SN - 1525-0008
PB - Wiley
DO - 10.1111/infa.70114
UR - https://doi.org/10.1111/infa.70114
LA - en
ER -

CSL-JSON

{
"id": "10.1111/infa.70114",
"type": "article-journal",
"title": "Statistics in Motion: Does the Infant Motor System Predict Actions Based on Their Transitional Probability?",
"container-title": "Infancy : the official journal of the International Society on Infant Studies",
"author": [
{
"family": "Ghilardi",
"given": "Tommaso"
},
{
"family": "Meyer",
"given": "Marlene"
},
{
"family": "Monroy",
"given": "Claire D."
},
{
"family": "Gerson",
"given": "Sarah A."
},
{
"family": "Hunnius",
"given": "Sabine"
}
],
"container-title-short": "Infancy",
"volume": "31",
"issue": "4",
"page": "e70114",
"DOI": "10.1111/infa.70114",
"PMID": "42576376",
"PMCID": "PMC13457992",
"ISSN": "1525-0008",
"publisher": "Wiley",
"URL": "https://doi.org/10.1111/infa.70114",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
1
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1038/s41598-026-53424-4 [code]
Cognitive control networks causally support implicit emotion regulation: evidence from dlPFC stimulation and directed functional connectivity.
Journal: Scientific reports
In common: brms, FieldTrip, lmerTest, 4 other tools, EEG, 2 references
[2] doi:10.1371/journal.pbio.3003979 [code]
Impaired midfrontal‑motor theta phase synchronization characterizes maladaptive motivational behavior in people with obsessive‑compulsive disorder.
Journal: PLoS biology
In common: Stan, FieldTrip, lmerTest, 2 other tools, EEG, 4 references
[3] doi:10.1162/nol.a.266 [code]
The Role of the Anterior Temporal Lobe in Reading: An HD-tDCS Study.
Journal: Neurobiology of language (Cambridge, Mass.)
In common: Stan, brms, easystats, 3 other tools, 2 references
[4] doi:10.1371/journal.pone.0355165 [code]
Pupillary dynamics during hands-off L2 driving and transitions of control under high cognitive load.
Journal: PloS one
In common: Stan, brms, easystats, 4 other tools
[5] doi:10.1016/j.isci.2026.116747 [code]
Age and loneliness relate to reduced trust learning and alterations in amygdala function.
Journal: iScience
In common: Stan, brms, easystats, 4 other tools
[6] doi:10.1162/imag.a.1258 [code]
Non-specific increase in alpha power during a neurofeedback session targeting its downregulation.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: Stan, brms, easystats, 3 other tools, EEG, 1 reference
[7] doi:10.3758/s13415-026-01442-0 [code]
Empathy for pain persists across live two-way video interactions and viewing of prerecorded videos.
Journal: Cognitive, affective & behavioral neuroscience
In common: lmerTest, lme4, tidyverse, EEG, 5 references
[8] doi:10.1038/s41467-026-74565-0 [code]
The functional neurobiology of dispositions towards negative emotions.
Journal: Nature communications
In common: brms, easystats, FieldTrip, 4 other tools
[9] doi:10.1007/s12671-026-02850-6 [code]
Meditation-Specific Neural Predictors of State Mindfulness During Eyes Open Meditation.
Journal: Mindfulness
In common: brms, easystats, lmerTest, 2 other tools, EEG, 2 references
[10] doi:10.1093/cercor/bhag077 [code]
The longitudinal development of intrinsic timescales in infancy and their relation to alpha brain rhythm.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: easystats, FieldTrip, lmerTest, 2 other tools, developmental, EEG, 2 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.