Wired for Corruption: Inter-Brain Synchrony Encodes Bribery-Related Value Information and Predicts Bribery Agreement.
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: 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.1093/cercor/bhad132
- Why people engage in corrupt collaboration: an observation at the multi-brain level.Journal: Cerebral cortex (New York, N.Y. : 1991)In common: fNIRS, 11 references
- [2] doi:10.1093/scan/nsab136 [code]
- Causal role of the right temporoparietal junction in selfishness depends on the social partner.Journal: Social cognitive and affective neuroscienceIn common: ggpubr, ggplot2, tidyverse, 7 references
- [3] doi:10.1371/journal.pbio.3003602
- Augmentation of frontoparietal gamma-band phase coupling enhances human altruistic behavior.Journal: PLoS biologyIn common: 8 references
- [4] doi:10.1093/scan/nsad061 [code]
- Causal roles of prefrontal and temporo-parietal theta oscillations for inequity aversion.Journal: Social cognitive and affective neuroscienceIn common: lme4, 6 references
- [5] doi:10.1093/scan/nsac057 [code]
- Social cognitive processes explain bias in juror decisions.Journal: Social cognitive and affective neuroscienceIn common: Stan, lme4, ggpubr, 2 other tools, 2 references
- [6] doi:10.7554/elife.92539 [code]
- A neurocomputational account of the link between social perception and social action.Journal: eLifeIn common: 6 references
- [7] doi:10.1162/imag_a_00509 [code]
- Analytical pipeline optimisation in developmental fNIRS hyperscanning data: Neural coherence between 4- to 6-year old children collaborating with their mothers.Journal: Imaging neuroscience (Cambridge, Mass.)In common: lme4, ggpubr, ggplot2, 1 other tool, fNIRS, 3 references
- [8] doi:10.1016/j.cub.2022.08.010 [code]
- Distinct neural representations for prosocial and self-benefiting effort.Journal: Current biology : CBIn common: lme4, ggpubr, tidyverse, 3 references
- [9] doi:10.1038/s42003-025-09043-2 [code]
- Neurocomputational mechanisms of social presence effects on instrumental learning.Journal: Communications biologyIn common: Stan, lme4, ggpubr, 2 other tools, 1 reference
- [10] doi:10.1371/journal.pbio.3003079 [code]
- Dorsomedial and ventromedial prefrontal cortex lesions differentially impact social influence and temporal discounting.Journal: PLoS biologyIn common: Stan, lme4, ggpubr, 2 other tools, 1 reference
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:633327506486fe18…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1111/nyas.70327)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1111/nyas.70327.svg
:target: https://openscicode.org/badge/doi/10.1111/nyas.70327
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1111/nyas.70327"><img src="https://openscicode.org/badge/doi/10.1111/nyas.70327.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge 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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
