Regretting a chance to connect: How neural responses to missed social opportunities predict self-disclosure.
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 · 166 lines · 8 KB · no license
- ## LOADING PACKAGES
- # library(lme4) # mlm
- library(nlme)
- library(lmerTest) # mlm stats
- library(performance) # mlm icc
- library(interactions) # mlm
- library(r2mlm) # mlm
- library(ggplot2) # data visualization
- library(ggstatsplot) # data visualization
- library(ggeffects) # data visualization
- library(psych) # describe data
- library(dplyr) # data wrangling
- library(tidyverse) # data wrangling
- library(reshape2) # data reshaping
- library(plyr)
- library(expss)
- library(DescTools)
- library(cowplot) # plot annotation
- library(emmeans)
- library(interactions)
- library(lavaan)
- library(multcomp)
- ## LOADING
- disc_df <- read.csv('/Users/seh-jookwon/Documents/Rutgers/Projects/SocialConnections/3-analysis/for-osf/disc1-avg.csv',header=T)
- disc <- disc_df
- disc2_df <- read.csv('/Users/seh-jookwon/Documents/Rutgers/Projects/SocialConnections/3-analysis/for-osf/disc2-trial-level.csv',header=T)
- disc2 <- disc2_df
- disc3_df <- read.csv('/Users/seh-jookwon/Documents/Rutgers/Projects/SocialConnections/3-analysis/for-osf/disc3-trial-level-regret-only.csv',header=T)
- disc3 <- disc3_df
- disc4_df <- read.csv('/Users/seh-jookwon/Documents/Rutgers/Projects/SocialConnections/3-analysis/for-osf/disc4-trial-level-closeness-only.csv',header=T)
- disc4 <- disc4_df
- disc5_df <- read.csv('/Users/seh-jookwon/Documents/Rutgers/Projects/SocialConnections/3-analysis/for-osf/disc5-intimacy.csv',header=T)
- disc5 <- disc5_df
- --------------------------------------------------------------------------------
- ## DESCRIPTIVE STATS
- # share vs. hide (behav. differences)
- svh <- t.test(disc$Share_Prop, mu = 0.5, alternative = "greater")
- svh
- # share vs. hide (reaction time differences)
- rt <- t.test(disc$Share_RT, disc$Hide_RT, paired = TRUE)
- rt
- --------------------------------------------------------------------------------
- ## QUESTION 1
- # Q1A: does closeness increase across trials?
- summary(q1a <- lme(Closeness ~ Trial + Version,
- data = disc4,
- random = ~ Trial|id,
- method = "ML",
- control= lmeControl(opt = "optim", maxIter = 200, msMaxIter = 200,
- niterEM = 50, msMaxEval = 400, msVerbose = FALSE),
- na.action = na.exclude))
- # saving each person's rate of change in closeness
- coef <- coef(q1a)
- # does rate of change in closeness predict later cooperation behavior (in prisoner's dilemma)?
- summary(coop <- lm(Share_Prop ~ ClosenessRate,data = disc))
- # Q1B: closeness development + number of various interaction types (share-share, share-hide, hide-share, hide-hide)
- summary(int_close <- lm(ClosenessRate ~ HS_Count,data = disc))
- --------------------------------------------------------------------------------
- ## QUESTION 2
- # Q2A: how interaction type predicts subsequent decision-making
- # model has singularity issues if interaction type is added as a random effect
- disc2$Int_Type <- as.factor(disc2$Int_Type)
- summary(q2a <- glmer(Share_Next ~ Int_Type + (1 | id),
- data = disc2, family = binomial, nAGQ=1, na.action = na.omit,
- control = glmerControl(optimizer = "bobyqa",optCtrl=list(maxfun=2e5))))
- # posthoc (pairwise comparisons)
- contrasts_q2a <- rbind("hs-sh" = c(0,-1,1,0),
- "hh-sh"= c(0,-1,0,1),
- "hh-hs"= c(0,0,-1,1))
- summary(glht(q2a,contrasts_q2a),test=adjusted("bonferroni"))
- # Q2B: the effect of interaction type on subsequent decision-making across trials
- summary(q2b <- glmer(Share_Next ~ Int_Type*Trial + (1 | id),
- data = disc2, family = binomial, nAGQ=1, na.action = na.omit,
- control = glmerControl(optimizer = "bobyqa",optCtrl=list(maxfun=2e5))))
- # posthoc (simple effects)
- contrasts_q2b <- rbind("sh_trial"= c(0,0,0,0,1,1,0,0),
- "hs_trial" = c(0,0,0,0,1,0,1,0),
- "hh_trial"= c(0,0,0,0,1,0,0,1))
- summary(glht(q2b,contrasts_q2b),test=adjusted("bonferroni"))
- # posthoc (pairwise comparisons)
- contrasts_q2b_trial <- rbind("sh_trial-hs_trial"= c(0,0,0,0,0,1,-1,0),
- "sh_trial-hh_trial" = c(0,0,0,0,0,1,0,-1),
- "hs_trial-hh_trial"= c(0,0,0,0,0,0,1,-1))
- summary(glht(q2b,contrasts_q2b_trial),test=adjusted("bonferroni"))
- --------------------------------------------------------------------------------
- ## QUESTION 3
- # Q3A: regret across interaction types
- disc3$Int_Type <- as.factor(disc3$Int_Type)
- q3a <- lmer(Regret ~ Int_Type + (1 | Subject), data = disc3)
- summary(q3a)
- # posthoc (pairwise comparisons)
- emm <- emmeans(q3a, ~ Int_Type)
- pairs(emm, adjust = "bonferroni")
- # Q3B: regret + subsequent behavioral change
- summary(q3b <- glmer(Behav_Change_Next ~ Regret + (1 | id),
- data = disc2, family = binomial, nAGQ=1, na.action = na.omit,
- control = glmerControl(optimizer = "bobyqa",optCtrl=list(maxfun=2e5))))
- summary(q3b_2 <- glmer(Behav_Change_Next ~ Regret + (1 + Regret | id),
- data = disc2, family = binomial, nAGQ=1, na.action = na.omit,
- control = glmerControl(optimizer = "bobyqa",optCtrl=list(maxfun=2e5))))
- # picking the best-fit model (q3b_2 is better!)
- anova(q3b,q3b_2)
- # whether the effect of regret on behavioral changes depend on the context / interaction type
- summary(q3b_3 <- glmer(Behav_Change_Next ~ Regret*Int_Type + (1 + Regret | id),
- data = disc2, family = binomial, nAGQ=1, na.action = na.omit,
- control = glmerControl(optimizer = "bobyqa",optCtrl=list(maxfun=2e5))))
- # posthoc (pairwise comparisons)
- contrasts_q3b <- rbind("sh-hs"= c(0,0,0,0,0,1,-1,0),
- "sh-hh" = c(0,0,0,0,0,1,0,-1),
- "hs-hh"= c(0,0,0,0,0,0,1,-1))
- summary(glht(q3b_3,contrasts_q3b),test=adjusted("bonferroni"))
- --------------------------------------------------------------------------------
- ## EXPLORATORY: intimacy
- # behavioral differences
- explor1.1 <- t.test(disc$Share_High_Prop,disc$Share_Low_Prop,paired=TRUE)
- explor1.1
- # reaction time differences
- explor1.2 <- lmer(AvgRT ~ Intimacy*Decision + (1 | Subject), data = disc5)
- summary(explor1.2)
- # regret differences
- explor1.3 <- t.test(disc$Regret_High,disc$Regret_Low,paired=TRUE)
- explor1.3
- --------------------------------------------------------------------------------
- ## EXPLORATORY: interaction type -> behavioral change
- summary(explor2.1 <- glmer(Behav_Change_Next ~ Int_Type + (1 | id),
- data = disc2, family = binomial, nAGQ=1, na.action = na.omit,
- control = glmerControl(optimizer = "bobyqa",optCtrl=list(maxfun=2e5))))
- # posthoc (pairwise comparisons)
- contrasts_explor2.1 <- rbind("hs-sh" = c(0,-1,1,0),
- "hh-sh"= c(0,-1,0,1),
- "hh-hs"= c(0,0,-1,1))
- summary(glht(explor2.1,contrasts_explor2.1),test=adjusted("bonferroni"))
- --------------------------------------------------------------------------------
- ## EXPLORATORY: brain + behavior links
- # mpfc + dmpfc estimates -> trial-level likelihood of sharing
- summary(explor3.1 <- glmer(Participant_Decision ~ SS_MPFC_Z + SH_MPFC_Z + HS_MPFC_Z + HH_MPFC_Z + (1 | id),
- data = disc2, family = binomial, nAGQ=1, na.action = na.omit,
- control = glmerControl(optimizer = "bobyqa",optCtrl=list(maxfun=2e5))))
- # mpfc + dmpfc estimates -> trial-level likelihood of sharing
- summary(explor3.2 <- glmer(Participant_Decision ~ SS_LPSTS_Z + SH_LPSTS_Z + HS_LPSTS_Z + HH_LPSTS_Z + (1 | id),
- data = disc2, family = binomial, nAGQ=1, na.action = na.omit,
- control = glmerControl(optimizer = "bobyqa",optCtrl=list(maxfun=2e6))))
- --------------------------------------------------------------------------------
- ## EXPLORATORY: linking disclosure task + willingness-to-pay task
- disc <- disc %>% mutate(value = WTP_Share_Hide_Partner - WTP_Share_Hide_Stranger)
- summary(explor4.1 <- lm(value ~ SS_MPFC_Z + SH_MPFC_Z + HS_MPFC_Z + HH_MPFC_Z,data = disc))
- summary(explor4.2 <- lm(value ~ SS_LPSTS_Z + SH_LPSTS_Z + HS_LPSTS_Z + HH_LPSTS_Z,data = disc))
disclosure.R, no license · at the source
Overview
Abstract
Humans value communicating information about themselves to others, and exchanges of such information between two individuals are fundamental to social bond formation. Yet, people often keep information private, potentially forfeiting the chance to connect with someone new. In this preregistered functional MRI study, participants who experienced more missed social opportunities in an iterative self-disclosure task—or instances where withholding information was met with an ostensible partner's self-disclosure—tended to feel closer to this partner faster. Missed social opportunities were regrettable and most likely followed by a change in subsequent decisions, making participants switch from withholding to sharing their information. Using conjunction analysis, activities in the medial prefrontal cortex and posterior superior temporal sulcus (pSTS), regions implicated in social-cognitive processes, were greater in response to missed social opportunities than in response to other social interactions (e.g. mutual self-disclosure). Notably, greater pSTS responses to missed social opportunities were linked to a higher likelihood of disclosing to a partner, as well as a higher amount of money willing to be spent to disclose to a partner in a follow-up task, highlighting the role of the pSTS in predicting a sustained interest in the new partner. Our findings elucidate the neurobiological, affective, and behavioral attributes of forgone moments of connection that contribute to interpersonal closeness development. We further identify context-dependent pSTS activities that support closeness-generating behaviors like self-disclosure.
Reproduced under the paper's license (CC BY-NC), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above.
OSF yxtwb
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
- 29 September 2026: the link answers (HTTP 200)
1 file
- data-and-code/
disclosure.R , R, 166 lines
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;
- 1 script, 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
Datasets cited
- neurovault.org/
collections/ , at neurovault.org; found in “Data Availability”21797
Data Availability
The preregistration, de-identified behavioral data, and data analyses codes are available on OSF (https://
Reproduced under the paper's license (CC BY-NC), from the paper cited above.
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 1, 29 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 5 keywords, 1 funder, 31 references.
Cite
This paper
Kwon, S.-J., Nicastri, C. M., Bhanji, J. P., & Delgado, M. R. (2026). Regretting a chance to connect: How neural responses to missed social opportunities predict self-disclosure. PNAS nexus, 5(5), pgag138. https://
BibTeX
@article{kwon2026regrett
author = {Kwon, Seh-Joo and Nicastri, Casey M and Bhanji, Jamil P and Delgado, Mauricio R},
title = {{Regretting a chance to connect: How neural responses to missed social opportunities predict self-disclosure}},
journal = {PNAS nexus},
year = {2026},
month = apr,
volume = {5},
number = {5},
pages = {pgag138},
publisher = {Oxford University Press},
issn = {2752-6542},
doi = {10.1093/
url = {https://
pmid = {42137770},
pmcid = {PMC13168892}
}
RIS
TY - JOUR
AU - Kwon, Seh-Joo
AU - Nicastri, Casey M
AU - Bhanji, Jamil P
AU - Delgado, Mauricio R
TI - Regretting a chance to connect: How neural responses to missed social opportunities predict self-disclosure
T2 - PNAS nexus
J2 - PNAS Nexus
PY - 2026
DA - 2026/
VL - 5
IS - 5
SP - pgag138
SN - 2752-6542
PB - Oxford University Press
DO - 10.1093/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1093/
"type": "article-journal",
"title": "Regretting a chance to connect: How neural responses to missed social opportunities predict self-disclosure",
"container-title": "PNAS nexus",
"author": [
{
"family": "Kwon",
"given": "Seh-Joo"
},
{
"family": "Nicastri",
"given": "Casey M"
},
{
"family": "Bhanji",
"given": "Jamil P"
},
{
"family": "Delgado",
"given": "Mauricio R"
}
],
"container-title-short":
"volume": "5",
"issue": "5",
"page": "pgag138",
"DOI": "10.1093/
"PMID": "42137770",
"PMCID": "PMC13168892",
"ISSN": "2752-6542",
"publisher": "Oxford University Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
24
]
]
}
}
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/s41380-026-03694-1 [code]
- Targeting cortico-striatal-amygdal
ar networks via theta-band frontoparietal synchronization in opioid use disorder: a randomized tACS-fMRI Trial. Journal: Molecular psychiatryIn common: multcomp, lavaan, nlme, 5 other tools, fMRI - [2] doi:10.1073/pnas.2606871123 [code]
- Oxytocin modulates the neurocomputational mechanisms engaged in learning rank relationships in social networks.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: nlme, psych, easystats, 6 other tools
- [3] doi:10.1038/s41398-026-04010-9 [code]
- Bullying victimization and brain development: a longitudinal structural magnetic resonance imaging study from adolescence to early adulthood.Journal: Translational psychiatryIn common: lavaan, nlme, psych, 5 other tools
- [4] doi:10.1093/braincomms/fcag121 [code]
- Anterior insular co-activation patterns associated with stress markers in chronic primary pain.Journal: Brain communicationsIn common: multcomp, psych, easystats, 5 other tools, fMRI
- [5] doi:10.1038/s41467-026-71415-x [code]
- Regional BOLD variability reflects microstructural maturation and neuronal ensheathment in the preterm infant cortex.Journal: Nature communicationsIn common: nlme, psych, easystats, 5 other tools, fMRI
- [6] doi:10.1162/imag.a.1298 [code]
- Frontoparietal control-default mode connectivity predicts TMS effects on cognitive control.Journal: Imaging neuroscience (Cambridge, Mass.)In common: lavaan, psych, emmeans, 4 other tools, cognitive, 1 reference
- [7] doi:10.1002/hbm.70605 [code]
- BrainEnrich: Revealing Biological Insights for Imaging-Derived Phenotypes Through Transcriptomic Enrichment.Journal: Human brain mappingIn common: nlme, easystats, emmeans, 5 other tools
- [8] doi:10.1093/braincomms/fcag279 [code]
- Network flexibility facilitates treatment-induced recovery in post-stroke aphasia.Journal: Brain communicationsIn common: psych, easystats, emmeans, 4 other tools, fMRI, 1 reference
- [9] doi:10.1016/j.isci.2026.116747 [code]
- Age and loneliness relate to reduced trust learning and alterations in amygdala function.Journal: iScienceIn common: nlme, easystats, emmeans, 4 other tools, fMRI, cognitive
- [10] doi:10.1371/journal.pone.0353990 [code]
- Positive mood enhances accessibility of unrelated concepts in the first language but not in the foreign language.Journal: PloS oneIn common: multcomp, psych, emmeans, 4 other tools, cognitive
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, 1 script, 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:83c0068de662531b…
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.
