Wired for Corruption: Inter-Brain Synchrony Encodes Bribery-Related Value Information and Predicts Bribery Agreement.
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
- ---
- title: "GLM_pic"
- author: "邱诗苇"
- date: "2024-07-11"
- output: html_document
- ---
- ```{r setup, include=FALSE}
- knitr::opts_chunk$set(echo = TRUE)
- ```
- ## GLM of parameter variables on 50 pairs
- ```{r prepare}
- library(tidyverse)
- library(ggpubr)
- library(lme4)
- dir <- getwd()
- data_path <- paste0(dir,"/rawdata/")
- code_path <- paste0(dir,"/code/")
- save_path <- paste0(dir,"/output/")
- 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)) %>%
- mutate(context=ifelse(winornot==1,"control","bribery")) %>% select(-winornot)
- df_raw_PH <- readxl::read_xlsx(paste0(data_path,"ph_data/excel/Ph_intersection.xlsx"))
- df_raw_B <- readxl::read_xlsx(paste0(data_path,"b_data/excel/Briber_intersection.xlsx"))
- ```
- ```{r paired t test for context}
- df_ttest <- df_raw_dyad|> group_by(subject,context) |> summarise_each(mean)
- bruceR::TTEST(df_ttest |> select(subject,ph,context) |> spread(context,ph),c("bribery","control"),paired = T,digits = 3)
- bruceR::TTEST(df_ttest |> select(subject,briber,context) |> spread(context,briber),c("bribery","control"),paired = T,digits = 3)
- bruceR::TTEST(df_ttest |> select(subject,collusion,context) |> spread(context,collusion),c("bribery","control"),paired = T,digits = 3)
- ```
- ```{r GLM context*proportion*gain}
- df_glmer <- df_raw_dyad %>% mutate(Zprop=scale(propp),Zgainp=scale(gainp),Context=as.factor(ifelse(context=="control",0,1)))
- fit_PH <- glmer(ph~Context*Zprop*Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
- summary(fit_PH)
- #简单斜率分析
- summary(emtrends(fit_PH,~Context,var="Zprop"), infer = c(TRUE, TRUE))
- contrast(emtrends(fit_PH,~Context,var="Zprop"), method = "pairwise")
- fit_B <- glmer(briber~Context*Zprop*Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
- summary(fit_B)
- fit_Dyad <- glmer(collusion~Context*Zprop*Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
- summary(fit_Dyad)
- #简单斜率分析
- summary(emtrends(fit_Dyad,~Context,var="Zprop"), infer = c(TRUE, TRUE))
- contrast(emtrends(fit_Dyad,~Context,var="Zprop"), method = "pairwise")
- ```
- ```{r GLM context+proportion+gain}
- df_glmer <- df_raw_dyad %>% mutate(Zprop=scale(propp),Zgainp=scale(gainp),Context=as.factor(ifelse(context=="control",0,1)))
- fit_PH <- glmer(ph~1+Context+Zprop+Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
- summary(fit_PH)
- fit_B <- glmer(briber~1+Context+Zprop+Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
- summary(fit_B)
- fit_Dyad <- glmer(collusion~1+Context+Zprop+Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
- summary(fit_Dyad)
- ```
- ```{r GLM context*proportion}
- df_glmer <- df_raw_dyad %>% mutate(Zprop=scale(propp),Zgainp=scale(gainp),Context=as.factor(ifelse(context=="control",0,1)))
- fit_PH <- glmer(ph~1+Context*Zprop+Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
- summary(fit_PH)
- fit_PH <- glmer(ph~1+Context*Zprop+Zgainp+(1|subject),data=df_glmer,family = "binomial")
- summary(fit_PH)
- fit_B <- glmer(briber~1+Context*Zprop+Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
- summary(fit_B)
- fit_Dyad <- glmer(collusion~1+Context*Zprop+Zgainp+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
- summary(fit_Dyad)
- ```
- ```{r GLM context*gain_proposer}
- df_glmer <- df_raw_dyad %>% mutate(Zprop=scale(propp),Zgainp=scale(gainp),Context=as.factor(ifelse(context=="control",0,1)))
- fit_PH <- glmer(ph~1+Context*Zgainp+Zprop+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
- summary(fit_PH)
- fit_B <- glmer(briber~1+Context*Zgainp+Zprop+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
- summary(fit_B)
- fit_Dyad <- glmer(collusion~1+Context*Zgainp+Zprop+(1|subject),data=df_glmer,family = "binomial",contrasts = list(Context="contr.sum"))
- summary(fit_Dyad)
- ```
- ```{r plot}
- df_para_reg <- df_raw_dyad %>%
- group_by(gainp,propp,context) %>% summarise_each(briber,ph,collusion,fun="mean")
- # context effect, barplots
- 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)
- df_context$Behavior <- factor(df_context$Behavior,levels = c("Proposal","Acceptance","Success"))
- 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")+
- font("xylab",size = 22,face = "bold")+
- font("xy.text",size=14,face = "bold")+
- theme(strip.text = element_text(face = "bold", size = 20),axis.title.x = element_text(vjust=-0.8))+
- ylim(0,1)+yscale("percent",.format = TRUE)+
- stat_compare_means(comparisons = list(c("bribery", "control")), method = "t.test", paired = TRUE,
- label = "p.signif", label.y = 1, tip.length = 0.02,vjust = 0.7,bracket.size = 0.7,
- symnum.args = list(cutpoints = c(0, 0.001, 1), symbols = c("***", "ns")),
- fontface="bold",size=8)
- ggsave("output/BehavRate_barplot.png",height = 5,width = 10)
- # proportion effect, lineplots
- 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))
- df_proportion$Behavior <- factor(df_proportion$Behavior,levels = c("Proposal","Acceptance","Success"))
- 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())+
- font("xylab",size = 22,face = "bold")+
- font("xy.text",size=14,face = "bold")+
- font("legend.title",size=16,face = "bold")+
- font("legend.text",size=14)+
- theme(strip.text = element_text(face = "bold", size = 20),legend.position="right")+
- yscale("percent",.format = TRUE)+ylim(0,1)
- ggsave("output/BehavRate_proportion_lineplot.png",height = 5,width = 12)
- # proposer's gain effect, lineplots
- 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))
- df_progain$Behavior <- factor(df_progain$Behavior,levels = c("Proposal","Acceptance","Success"))
- 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())+
- xlab("Player's Gain")+
- font("xylab",size = 22,face = "bold")+
- font("xy.text",size=14,face = "bold")+
- font("legend.title",size=16,face = "bold")+
- font("legend.text",size=14)+
- theme(strip.text = element_text(face = "bold", size = 20),legend.position="right")+
- ylim(0,1)+yscale("percent",.format = TRUE)
- ggsave("output/BehavRate_proposergain_lineplot.png",height = 5,width = 12)
- ```
behav_glm.Rmd, no license · at the source
Overview
- 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
- Department of Psychology and Behavioral Sciences Zhejiang University Hangzhou China
- Center for Psychological Research on Anti‐Corruption, Institute of Discipline Inspection and Supervision ECNU Shanghai China
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
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
2 files
- fNIRSStudy/
code/ , R, 154 linesbehavior/ behav_glm.Rmd - fNIRSStudy/
code/ , R, 1,043 linesbehavior/ behavior_analysis_main.R md
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:
- it points to the authors' code: OSF xvkft
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://
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/
url = {https://
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/
VL - 1561
IS - 1
SP - e70327
SN - 0077-8923
PB - Wiley
DO - 10.1111/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1111/
"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":
"volume": "1561",
"issue": "1",
"page": "e70327",
"DOI": "10.1111/
"PMID": "42376945",
"PMCID": "PMC13316970",
"ISSN": "0077-8923",
"publisher": "Wiley",
"URL": "https://
"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: iScienceIn 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 biologyIn 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 advancesIn 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 biologyIn 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-relate
d representations during both perspective judgments. Journal: Psychological researchIn 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: eLifeIn 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 biologyIn 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: NeurophotonicsIn 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 biologyIn 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 oneIn 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 2 scripts, and 0 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:0852d2e6f14abae4…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[.
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.
