OSCR

Wired for Corruption: Inter-Brain Synchrony Encodes Bribery-Related Value Information and Predicts Bribery Agreement.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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 Markdown · 154 lines · 7.3 KB · no license

  1. ---
  2. title: "GLM_pic"
  3. author: "邱诗苇"
  4. date: "2024-07-11"
  5. output: html_document
  6. ---
  7. ```{r setup, include=FALSE}
  8. knitr::opts_chunk$set(echo = TRUE)
  9. ```
  10. ## GLM of parameter variables on 50 pairs
  11. ```{r prepare}
  12. library(tidyverse)
  13. library(ggpubr)
  14. library(lme4)
  15. dir <- getwd()
  16. data_path <- paste0(dir,"/rawdata/")
  17. code_path <- paste0(dir,"/code/")
  18. save_path <- paste0(dir,"/output/")
  19. df_raw_dyad <- readxl::read_xlsx(paste0(data_path,"dyad_data/excel/dyad_intersection.xlsx")) %>% select(subject,winornot,gainp,propp,briber,ph) %>% mutate(collusion=ifelse(briber==ph,1,0)) %>%
  20. mutate(context=ifelse(winornot==1,"control","bribery")) %>% select(-winornot)
  21. df_raw_PH <- readxl::read_xlsx(paste0(data_path,"ph_data/excel/Ph_intersection.xlsx"))
  22. df_raw_B <- readxl::read_xlsx(paste0(data_path,"b_data/excel/Briber_intersection.xlsx"))
  23. ```
  24. ```{r paired t test for context}
  25. df_ttest <- df_raw_dyad|> group_by(subject,context) |> summarise_each(mean)
  26. bruceR::TTEST(df_ttest |> select(subject,ph,context) |> spread(context,ph),c("bribery","control"),paired = T,digits = 3)
  27. bruceR::TTEST(df_ttest |> select(subject,briber,context) |> spread(context,briber),c("bribery","control"),paired = T,digits = 3)
  28. bruceR::TTEST(df_ttest |> select(subject,collusion,context) |> spread(context,collusion),c("bribery","control"),paired = T,digits = 3)
  29. ```
  30. ```{r GLM context*proportion*gain}
  31. df_glmer <- df_raw_dyad %>% mutate(Zprop=scale(propp),Zgainp=scale(gainp),Context=as.factor(ifelse(context=="control",0,1)))
  32. fit_PH <- glmer(ph~Context*Zprop*Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
  33. summary(fit_PH)
  34. #简单斜率分析
  35. summary(emtrends(fit_PH,~Context,var="Zprop"), infer = c(TRUE, TRUE))
  36. contrast(emtrends(fit_PH,~Context,var="Zprop"), method = "pairwise")
  37. fit_B <- glmer(briber~Context*Zprop*Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
  38. summary(fit_B)
  39. fit_Dyad <- glmer(collusion~Context*Zprop*Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
  40. summary(fit_Dyad)
  41. #简单斜率分析
  42. summary(emtrends(fit_Dyad,~Context,var="Zprop"), infer = c(TRUE, TRUE))
  43. contrast(emtrends(fit_Dyad,~Context,var="Zprop"), method = "pairwise")
  44. ```
  45. ```{r GLM context+proportion+gain}
  46. df_glmer <- df_raw_dyad %>% mutate(Zprop=scale(propp),Zgainp=scale(gainp),Context=as.factor(ifelse(context=="control",0,1)))
  47. fit_PH <- glmer(ph~1+Context+Zprop+Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
  48. summary(fit_PH)
  49. fit_B <- glmer(briber~1+Context+Zprop+Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
  50. summary(fit_B)
  51. fit_Dyad <- glmer(collusion~1+Context+Zprop+Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
  52. summary(fit_Dyad)
  53. ```
  54. ```{r GLM context*proportion}
  55. df_glmer <- df_raw_dyad %>% mutate(Zprop=scale(propp),Zgainp=scale(gainp),Context=as.factor(ifelse(context=="control",0,1)))
  56. fit_PH <- glmer(ph~1+Context*Zprop+Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
  57. summary(fit_PH)
  58. fit_PH <- glmer(ph~1+Context*Zprop+Zgainp+(1|subject),data=df_glmer,family = "binomial")
  59. summary(fit_PH)
  60. fit_B <- glmer(briber~1+Context*Zprop+Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
  61. summary(fit_B)
  62. fit_Dyad <- glmer(collusion~1+Context*Zprop+Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
  63. summary(fit_Dyad)
  64. ```
  65. ```{r GLM context*gain_proposer}
  66. df_glmer <- df_raw_dyad %>% mutate(Zprop=scale(propp),Zgainp=scale(gainp),Context=as.factor(ifelse(context=="control",0,1)))
  67. fit_PH <- glmer(ph~1+Context*Zgainp+Zprop+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
  68. summary(fit_PH)
  69. fit_B <- glmer(briber~1+Context*Zgainp+Zprop+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
  70. summary(fit_B)
  71. fit_Dyad <- glmer(collusion~1+Context*Zgainp+Zprop+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
  72. summary(fit_Dyad)
  73. ```
  74. ```{r plot}
  75. df_para_reg <- df_raw_dyad %>%
  76. group_by(gainp,propp,context) %>% summarise_each(briber,ph,collusion,fun="mean")
  77. # context effect, barplots
  78. df_context <- df_para_reg[,c(3:6)] |> mutate(Condition=context,Proposal=briber,Acceptance=ph,Success=collusion)|> select(-c(briber,ph,collusion,context))|> gather("Behavior","Rate",-Condition)
  79. df_context$Behavior <- factor(df_context$Behavior,levels = c("Proposal","Acceptance","Success"))
  80. ggbarplot(df_context,"Condition","Rate",facet.by = "Behavior",add = c("mean_se","dotplot"),add.params = list(size=0.5,fill="Condition"),width = 0.7,color = "Condition",fill = "Condition",palette = c("#9C27B0","#616161"),alpha=0.5,ggtheme = theme_pubclean(),legend = "none")+
  81. font("xylab",size = 22,face = "bold")+
  82. font("xy.text",size=14,face = "bold")+
  83. theme(strip.text = element_text(face = "bold", size = 20),axis.title.x = element_text(vjust=-0.8))+
  84. ylim(0,1)+yscale("percent",.format = TRUE)+
  85. stat_compare_means(comparisons = list(c("bribery", "control")), method = "t.test", paired = TRUE,
  86. label = "p.signif", label.y = 1, tip.length = 0.02,vjust = 0.7,bracket.size = 0.7,
  87. symnum.args = list(cutpoints = c(0, 0.001, 1), symbols = c("***", "ns")),
  88. fontface="bold",size=8)
  89. ggsave("output/BehavRate_barplot.png",height = 5,width = 10)
  90. # proportion effect, lineplots
  91. df_proportion <- df_para_reg |> ungroup() |> select(-gainp) |> mutate(Proportion=propp,Condition=context,Proposal=briber,Acceptance=ph,Success=collusion)|> select(-c(propp,briber,ph,collusion,context))|> gather("Behavior","Rate",-c(Condition,Proportion))
  92. df_proportion$Behavior <- factor(df_proportion$Behavior,levels = c("Proposal","Acceptance","Success"))
  93. ggline(df_proportion,"Proportion","Rate",facet.by = "Behavior",add = c("mean_se"),size = 1,color = "Condition",fill = "Condition",palette = c("#f16c23","#2b6a99"),alpha=0.5,ggtheme = theme_pubclean())+
  94. font("xylab",size = 22,face = "bold")+
  95. font("xy.text",size=14,face = "bold")+
  96. font("legend.title",size=16,face = "bold")+
  97. font("legend.text",size=14)+
  98. theme(strip.text = element_text(face = "bold", size = 20),legend.position="right")+
  99. yscale("percent",.format = TRUE)+ylim(0,1)
  100. ggsave("output/BehavRate_proportion_lineplot.png",height = 5,width = 12)
  101. # proposer's gain effect, lineplots
  102. df_progain <- df_para_reg |> ungroup() |> select(-propp) |> mutate(ProposerGain=gainp,Condition=context,Proposal=briber,Acceptance=ph,Success=collusion)|> select(-c(gainp,briber,ph,collusion,context))|> gather("Behavior","Rate",-c(Condition,ProposerGain))
  103. df_progain$Behavior <- factor(df_progain$Behavior,levels = c("Proposal","Acceptance","Success"))
  104. ggline(df_progain,"ProposerGain","Rate",facet.by = "Behavior",add = c("mean_se"),size = 1,color = "Condition",fill = "Condition",palette = c("#f16c23","#2b6a99"),alpha=0.5,ggtheme = theme_pubclean())+
  105. xlab("Player's Gain")+
  106. font("xylab",size = 22,face = "bold")+
  107. font("xy.text",size=14,face = "bold")+
  108. font("legend.title",size=16,face = "bold")+
  109. font("legend.text",size=14)+
  110. theme(strip.text = element_text(face = "bold", size = 20),legend.position="right")+
  111. ylim(0,1)+yscale("percent",.format = TRUE)
  112. ggsave("output/BehavRate_proposergain_lineplot.png",height = 5,width = 12)
  113. ```

behav_glm.Rmd, no license · at the source

Overview

Authors: Yixuan Lin1, Shiwei Qiu1, Yiyang Xu1, Yafeng Pan2, Yang Hu1,3, Xianchun Li1
ORCID iDs: Yixuan Lin
  1. Key Laboratory of Brain Functional Genomics (MOE & STCSM), Affiliated Mental Health Center, Shanghai Key Laboratory of Mental Health and Psychological Crises Intervention, School of Psychology and Cognitive Science East China Normal University (ECNU) Shanghai China
  2. Department of Psychology and Behavioral Sciences Zhejiang University Hangzhou China
  3. Center for Psychological Research on Anti‐Corruption, Institute of Discipline Inspection and Supervision ECNU Shanghai China
Institutions: East China Normal University (China); Zhejiang University (China)
Journal: Annals of the New York Academy of Sciences, volume 1561, issue 1, article e70327
Dates: received 8 December 2025; accepted 11 May 2026; published online 30 June 2026; in print July 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1111/nyas.70327 · PMID 42376945 · PMCID PMC13316970 · OpenAlex W7166650443
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: fNIRS (modality), human (organism)
Methods: Statistics, Connectivity, Machine learning
Keywords: cognitive computational modeling, fNIRS, inter‐brain synchronization, interpersonal corruption, representation similarity analysis
MeSH: Brain*, Decision Making*, Prefrontal Cortex*, Brain Mapping, Cognition, Cooperative Behavior, Female, Humans, Interpersonal Relations, Male, Morals, Reward, Spectroscopy, Near-Infrared (* major topic)
Topic: Neural and Behavioral Psychology Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: STI 2030-Major Projects (2021ZD0200500); Brain Science and Brain-like Intelligence Technology - National Science and Technology Major Project (2025ZD0215701); National Natural Science Foundation of China (32571256, 32200853); Fundamental Research Funds for the Central Universities (2022ECNUXWK‐XK003); National Science Foundation of Shanghai (23ZR1418400); Zhejiang Provincial Natural Science Foundation of China (LMS25C090002)
Citations: not cited yet (Europe PMC); 51 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.

OSF xvkft

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Languages: R (2)
Size: 72 files, 2 scripts
Software Heritage: not checked
Found in: “Data, Materials, and Software Availability”
Holds: documentation, 2 notebooks
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration
Tools: ggpubr (2 files), lme4 (2 files), tidyverse (2 files), ggplot2 (1 file), Stan (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
2 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;
  • 2 scripts, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • 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/nyas.70327.

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, 6 authors, 5 keywords, 13 MeSH terms, 6 funders, 37 references.

Cite

This paper

Lin, Y., Qiu, S., Xu, Y., Pan, Y., Hu, Y., & Li, X. (2026). Wired for Corruption: Inter-Brain Synchrony Encodes Bribery-Related Value Information and Predicts Bribery Agreement. Annals of the New York Academy of Sciences, 1561(1), e70327. https://doi.org/10.1111/nyas.70327

BibTeX

@article{lin2026wired,
author = {Lin, Yixuan and Qiu, Shiwei and Xu, Yiyang and Pan, Yafeng and Hu, Yang and Li, Xianchun},
title = {{Wired for Corruption: Inter-Brain Synchrony Encodes Bribery-Related Value Information and Predicts Bribery Agreement}},
journal = {Annals of the New York Academy of Sciences},
year = {2026},
month = jul,
volume = {1561},
number = {1},
pages = {e70327},
publisher = {Wiley},
issn = {0077-8923},
doi = {10.1111/nyas.70327},
url = {https://doi.org/10.1111/nyas.70327},
pmid = {42376945},
pmcid = {PMC13316970}
}

RIS

TY - JOUR
AU - Lin, Yixuan
AU - Qiu, Shiwei
AU - Xu, Yiyang
AU - Pan, Yafeng
AU - Hu, Yang
AU - Li, Xianchun
TI - Wired for Corruption: Inter-Brain Synchrony Encodes Bribery-Related Value Information and Predicts Bribery Agreement
T2 - Annals of the New York Academy of Sciences
J2 - Ann N Y Acad Sci
PY - 2026
DA - 2026/07/01
VL - 1561
IS - 1
SP - e70327
SN - 0077-8923
PB - Wiley
DO - 10.1111/nyas.70327
UR - https://doi.org/10.1111/nyas.70327
LA - en
ER -

CSL-JSON

{
"id": "10.1111/nyas.70327",
"type": "article-journal",
"title": "Wired for Corruption: Inter-Brain Synchrony Encodes Bribery-Related Value Information and Predicts Bribery Agreement",
"container-title": "Annals of the New York Academy of Sciences",
"author": [
{
"family": "Lin",
"given": "Yixuan"
},
{
"family": "Qiu",
"given": "Shiwei"
},
{
"family": "Xu",
"given": "Yiyang"
},
{
"family": "Pan",
"given": "Yafeng"
},
{
"family": "Hu",
"given": "Yang"
},
{
"family": "Li",
"given": "Xianchun"
}
],
"container-title-short": "Ann N Y Acad Sci",
"volume": "1561",
"issue": "1",
"page": "e70327",
"DOI": "10.1111/nyas.70327",
"PMID": "42376945",
"PMCID": "PMC13316970",
"ISSN": "0077-8923",
"publisher": "Wiley",
"URL": "https://doi.org/10.1111/nyas.70327",
"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.1016/j.isci.2026.116047 [code]
Deciding to simulate: Cognitive mechanisms of predicting the decisions of others.
Journal: iScience
In common: Stan, lme4, ggplot2, 1 other tool, 1 reference
[2] doi:10.1038/s42003-026-10957-8 [code]
Brain defence by the extracellular matrix protein Cochlin.
Journal: Communications biology
In common: Stan, lme4, ggpubr, 2 other tools
[3] doi:10.1126/sciadv.aec9291 [code]
Computational mechanisms of perception in autism revealed using games inspired by rodent operant tasks.
Journal: Science advances
In common: Stan, lme4, ggpubr, 2 other tools
[4] doi:10.1371/journal.pbio.3003899 [code]
Social interactions between people of same and different generations shape longitudinal changes in interpersonal neural synchrony, loneliness, and social connection.
Journal: PLoS biology
In common: ggpubr, ggplot2, tidyverse, 2 references
[5] doi:10.1007/s00426-026-02311-8 [code]
The behavioral evidence of processing congruences and incongruences between Self- and Other-perspective-related representations during both perspective judgments.
Journal: Psychological research
In common: lme4, ggpubr, ggplot2, 1 other tool, 1 reference
[6] doi:10.7554/elife.103846 [code]
Overt visual attention modulates decision-related signals in the frontal cortex.
Journal: eLife
In common: lme4, ggpubr, ggplot2, 1 other tool, 1 reference
[7] doi:10.1371/journal.pbio.3003935 [code]
Lateralised neural mechanisms facilitate auditory self-other distinction and coordination in human dyads.
Journal: PLoS biology
In common: 4 references
[8] doi:10.1117/1.nph.13.3.035001 [code]
Understanding variability in full-term newborns' fNIRS data: the impact of birth weight and gestational age on infants' speech perception abilities.
Journal: Neurophotonics
In common: lme4, ggpubr, ggplot2, 1 other tool, fNIRS
[9] 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, lme4, ggplot2, 1 other tool
[10] 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, lme4, ggplot2, 1 other tool

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.