Regretting a chance to connect: How neural responses to missed social opportunities predict self-disclosure.
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 · 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/s42003-023-04953-5 [code]
- Sulcal morphology of posteromedial cortex substantially differs between humans and chimpanzees.Journal: Communications biologyIn common: multcomp, lavaan, nlme, 8 other tools, cognitive
- [2] doi:10.1007/s00429-022-02539-1 [code]
- Presence or absence of a prefrontal sulcus is linked to reasoning performance during child development.Journal: Brain structure & functionIn common: multcomp, lavaan, nlme, 8 other tools
- [3] doi:10.1093/brain/awaf302 [code]
- Parkinson's disease progression is shaped by longitudinal changes in cerebral compensation.Journal: Brain : a journal of neurologyIn common: multcomp, lavaan, easystats, 7 other tools, fMRI, 1 reference
- [4] doi:10.1093/brain/awad325 [code]
- Clinical severity in Parkinson's disease is determined by decline in cortical compensation.Journal: Brain : a journal of neurologyIn common: multcomp, lavaan, easystats, 7 other tools, fMRI, 1 reference
- [5] doi:10.1038/s41593-024-01672-w [code]
- Cognitive control training with domain-general response inhibition does not change children's brains or behavior.Journal: Nature neuroscienceIn common: multcomp, lavaan, easystats, 7 other tools, cognitive
- [6] doi:10.1016/j.dcn.2023.101251 [code]
- Age and vocabulary knowledge differentially influence the N400 and theta responses during semantic retrieval.Journal: Developmental cognitive neuroscienceIn common: multcomp, nlme, easystats, 7 other tools
- [7] doi:10.1038/s41366-023-01370-w [code]
- A randomized controlled trial investigating the effect of liraglutide on self-reported liking and neural responses to food stimuli in participants with obesity.Journal: International journal of obesity (2005)In common: multcomp, lavaan, easystats, 6 other tools, 1 reference
- [8] doi:10.1038/s41467-025-55830-0 [code]
- Pregnancy entails a U-shaped trajectory in human brain structure linked to hormones and maternal attachment.Journal: Nature communicationsIn common: multcomp, lavaan, nlme, 6 other tools
- [9] doi:10.1162/imag_a_00312 [code]
- Alpha-band fluctuations represent behaviorally relevant excitability changes as a consequence of top-down guided spatial attention in a probabilistic spatial cueing design.Journal: Imaging neuroscience (Cambridge, Mass.)In common: multcomp, lavaan, easystats, 6 other tools, cognitive
- [10] doi:10.1038/s41598-024-64054-z [code]
- Cortical processes of multisensory plausibility modulation of vibrotactile perception in virtual environments in middled-aged and older adults.Journal: Scientific reportsIn common: multcomp, nlme, easystats, 6 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:d81109dc8aac611e…
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.1093/pnasnexus/pgag138)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1093/pnasnexus/pgag138.svg
:target: https://openscicode.org/badge/doi/10.1093/pnasnexus/pgag138
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1093/pnasnexus/pgag138"><img src="https://openscicode.org/badge/doi/10.1093/pnasnexus/pgag138.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.
