Effort produces after-effects costly for others but valued for self.
One block of code here has a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 1 match
- [1] § Materials and methods › Data analysis ↔ Scripts/Data_analysis.R, lines 298 to 369 · score 0.60 · button presses, response speed, lme4, scored, pairwise, prosocial decision · block
oscr:b:MTFD871WP3JS0-T· Report a mismatch
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 · 372 lines · 17 KB · no license · 1 match
- # load library packages
- if (!require("pacman")) install.packages("pacman")
- pacman::p_load(dplyr, MASS, psych, R.matlab, sjPlot, emmeans, lme4, lmerTest,
- ggplot2, tidyverse, readxl, ggeffects, rstatix, ggpubr)
- rm(list=ls()) # Clear environment
- ## specify your working directory ##
- setwd("/Users/yazheng/Documents/Papers/2_UnderReview/ProsocialEffort_EEG/SecondVersion/OSF/Data/")
- # Helper function: Check convergence (Recommended by Ben Bolker)
- didLmerConverge = function(lmerModel){
- relativeMaxGradient=signif(max(abs(with(lmerModel@optinfo$derivs,solve(Hessian,gradient)))),3)
- if (relativeMaxGradient < 0.001) {
- cat(sprintf("\tThe relative maximum gradient of %s is less than our 0.001 criterion.\n\tYou can safely ignore any warnings about a claimed convergence failure.\n\n", relativeMaxGradient))
- }
- else {
- cat(sprintf("The relative maximum gradient of %s exceeds our 0.001 criterion.\nThis looks like a real convergence failure; maybe try simplifying your model?\n\n", relativeMaxGradient))
- }
- }
- # Helper function: Calculate percentage of variance explained by random effects (SVD)
- svd_lmer = function(lmerModel){
- sv1_max <- svd(getME(lmerModel, "Tlist")[[1]])
- sv1_max$d
- svdValue = round(sv1_max$d^2/sum(sv1_max$d^2)*100, 2)
- cat("The percetage of explained variances by random effects are", svdValue)
- }
- ######################### load and clean all data #################################
- # Subjects to be excluded based on exclusion criteria desribed in the manuscript
- exclude_subs=c(129,143,111,119,154,163,134)
- # load data of the prosocial effort task----
- # load behavioral data
- a2= read_xlsx('Behavior/prosocial_effort_data.xlsx')
- # load EEG data
- channels <- c('FP1', 'FP2', 'F7', 'F3', 'FZ', 'F4', 'F8', 'FT7', 'FC3', 'FCZ',
- 'FC4', 'FT8', 'T7', 'C3', 'CZ', 'C4', 'T8', 'CP3', 'CPZ', 'CP4',
- 'P7', 'P3', 'PZ', 'P4', 'P8', 'O1', 'OZ', 'O2')
- # Performance markers
- Performmks = readMat('EEG/Perform_mks.mat')
- PstimType <- Performmks$Performmks %>% as.data.frame()
- colnames(PstimType) <- c('Subject','stimType')
- a2$Pfmmks<-PstimType$stimType
- # Feedback markers
- FBmks = readMat('EEG/FB_mks.mat')
- FBstimType <- FBmks$FBmks %>% as.data.frame()
- colnames(FBstimType) <- c('Subject','stimType')
- a2$FBmks<-FBstimType$stimType
- # Load performance-p3
- PerformP3 = as.data.frame(readMat('EEG/PerformP3300440.mat')$PerformP3)
- colnames(PerformP3) <- channels
- a2$PerformP3 <- apply(cbind (PerformP3$P3,PerformP3$PZ,PerformP3$P4),1, mean)
- # Load FRN (i.e., RewP) data
- FRN = as.data.frame(readMat('EEG/FRN300400.mat')$FRN)
- colnames(FRN) <- channels
- a2$FRN <- apply(cbind (FRN$FCZ,FRN$FC3,FRN$FC4),1, mean)
- # data preparation for the prosocial effort task
- # Delete seven subjects
- a2 <- a2[!a2$Subject%in%exclude_subs,]
- # Setup variables
- a2 <- a2 %>%
- mutate(
- IsSuccess = as.numeric(!Pfmmks %in% c(7, 8)),
- Feedback = ifelse(FB == "ü", "Good", "Bad"),
- Valence = case_when(RewardType %in% c(0.2,0.4,0.6,0.8,1) ~ "Gain",
- RewardType == 0 ~ "NoGain") ) %>%
- rename(Magnitude = PreReward,
- Num = Effort,
- Effort = EffortLevel) %>%
- mutate(
- Effort = case_when(Effort == 1 ~ 2,
- Effort == 2 ~ 3,
- Effort == 3 ~ 4,
- Effort == 4 ~ 5,
- Effort == 5 ~ 6),
- zEffort = as.vector(scale(Effort)),
- zMagnitude = as.vector(scale(Magnitude))
- )
- # Compute response speed: button presses per second
- a2 <- a2 %>% mutate( PressNum = case_when(
- Effort == 2 ~ MeanMaxNum*0.1,
- Effort == 3 ~ MeanMaxNum*0.3,
- Effort == 4 ~ MeanMaxNum*0.5,
- Effort == 5 ~ MeanMaxNum*0.7,
- Effort == 6 ~ MeanMaxNum*0.9),
- Speed = PressNum/ComRT )
- # Define contrasts
- a2$Subject <- as.factor(a2$Subject)
- a2$Effort <- as.factor(a2$Effort)
- a2$Magnitude <- as.factor(a2$Magnitude)
- a2$Valence <-factor(a2$Valence, levels = c( "Gain","NoGain"))
- contrasts(a2$Valence) <- contr.sdif(2)
- a2$Recipient <-factor(a2$Recipient, levels = c( "Self","Other"))
- contrasts(a2$Recipient) <- contr.sdif(2)
- a2$Feedback <-factor(a2$Feedback)
- contrasts(a2$Feedback) <- contr.sdif(2)
- a2$ComRT<-as.numeric(a2$ComRT)
- # Handle invalid ERP trials (failed responses)
- a2 <- a2 %>% mutate(PerformP3 = ifelse(Pfmmks == 7, NaN, PerformP3),
- FRN = ifelse(FBmks == 8, NaN, FRN) )
- # load data of the prosocial decision-making task----
- a3= read_xlsx('Behavior/prosocial_decision-making_data.xlsx')
- # data preparation for the prosocial decision-making task
- # Delete seven subjects
- a3 <- a3[!a3$Subject%in%exclude_subs,]
- a3 <- a3 %>%
- rename(Effort = EffortLevel, Recipient = Type, ChoiceRT = decide.RT,Magnitude = Cpoint ) %>%
- mutate(
- zEffort = as.numeric(scale(Effort)),
- zMagnitude = as.numeric(scale(Magnitude)),
- # Re-coding choice: 1=high-effort, 3=low-effort (0), 2=no response (NA)
- Choice = ifelse(Choice == 2, NA_real_,
- ifelse(Choice == 3, 0, 1)),
- ChoiceRT = ifelse(is.na(Choice), NA_real_, ChoiceRT)
- )
- # Define contrasts
- a3$Subject <- as.factor(a3$Subject)
- a3$Recipient <-factor(a3$Recipient, levels = c( "self","other"))
- contrasts(a3$Recipient) <- contr.sdif(2)
- a3$Effort <-factor(a3$Effort)
- a3$Magnitude <-factor(a3$Magnitude)
- # K (discounting rate) analysis----
- # load K of self and other
- Self <- read_xlsx('Behavior/Self_nlm.xlsx',sheet = 'self_para')
- Other <- read_xlsx('Behavior/Other_nlm.xlsx',sheet = 'other_para')
- Mdl <- cbind(Self$subj, Self$k, Other$k) %>% as.data.frame()
- colnames(Mdl)<-c("Subject","SelfK","OtherK")
- # Delete subject
- Mdl <- Mdl[!Mdl$Subject %in% exclude_subs,]
- # log-transformed K values
- Mdl$Self_logk <- log(Mdl$SelfK)
- Mdl$Other_logk <- log(Mdl$OtherK)
- # Normality tests
- shapiro.test(Mdl$Self_logk)
- shapiro.test(Mdl$Other_logk)
- # Paired-t test
- t.test(Mdl$Self_logk,Mdl$Other_logk,paired = TRUE)
- # Correlation between self-K and other K
- cor.test(Mdl$Self_logk,Mdl$Other_logk,method = "pearson")
- # Post-experimental rating data -------------------------------------------
- input_file = 'Rating/Rating.xlsx'
- # Read all Sheets and merge into one long dataframe
- Rat <- bind_rows(
- # Self data
- read_xlsx(input_file, sheet = 'SelfLike') %>% mutate(Recipient = "Self", Items = "Like"),
- read_xlsx(input_file, sheet = 'SelfDifficulity') %>% mutate(Recipient = "Self", Items = "Difficulity"),
- read_xlsx(input_file, sheet = 'SelfEffort') %>% mutate(Recipient = "Self", Items = "Effort"),
- # Other data
- read_xlsx(input_file, sheet = 'OtherLike') %>% mutate(Recipient = "Other", Items = "Like"),
- read_xlsx(input_file, sheet = 'OtherDifficulity')%>% mutate(Recipient = "Other", Items = "Difficulity"),
- read_xlsx(input_file, sheet = 'OtherEffort') %>% mutate(Recipient = "Other", Items = "Effort")
- ) %>%
- # Convert effort2-effort6 columns to one column
- pivot_longer(
- cols = matches("effort[0-9]+"),
- names_to = "Type",
- values_to = "Rating"
- ) %>%
- filter(!Subject %in% exclude_subs) %>%
- mutate(
- Subject = as.factor(Subject),
- Items = as.factor(Items),
- Recipient = factor(Recipient, levels = c("Self", "Other")),
- Effort = as.numeric(str_remove(Type, "effort")),
- zEffort = as.vector(scale(Effort, scale = TRUE, center = TRUE))
- )
- ############################################################ DATA ANALYSIS ####################################################################
- ###############################################################################################################################################
- ############################################################ The prosocial effort task #########################################################
- # Behavior analysis
- # Success rate
- print (summary(mod_suc <- glmer(IsSuccess~ Recipient*zEffort*zMagnitude + (Recipient + zEffort | Subject),
- data=a2,family=binomial, control = glmerControl(optimizer = 'bobyqa'))))
- tab_model(mod_suc,transform = NULL)
- # response speed
- print (summary(mod_speed <- lmer(Speed~ Recipient*zEffort*zMagnitude + (Recipient + zEffort | Subject),
- data=a2, control = lmerControl(optimizer = 'bobyqa'), REML = FALSE)))
- tab_model(mod_speed, p.val = "satterthwaite")
- # ERP analysis
- # Performance P3: the P3 locked to performance feedback
- print (summary(mod_PerformP3 <- lmer(PerformP3~ Recipient*zEffort*zMagnitude + (zEffort |Subject),
- data=a2, control = lmerControl(optimizer = 'bobyqa'), REML = FALSE)))
- tab_model(mod_PerformP3, p.val = "satterthwaite")
- # FRN (RewP)
- print (summary(mod_frn <- lmer(FRN~ Recipient*zEffort*zMagnitude*Valence + (Recipient+zEffort+zMagnitude | Subject),
- data=a2, control = lmerControl(optimizer = 'bobyqa'), REML = FALSE)))
- tab_model(mod_frn, p.val = "satterthwaite")
- # Slope analyses for the FRN
- # Recipient*Valence*zMagnitude
- mylist <- list(Recipient=c("Self","Other"),Valence=c("Gain","NoGain"))
- emtrends(mod_frn, pairwise~Recipient|Valence, var="zMagnitude",at=mylist) %>% summary(infer = c(TRUE,TRUE))
- # Recipient*zEffort*zMagnitude
- mylist <- list(zMagnitude=c(-1,1),Recipient=c("Self","Other"))
- emtrends(mod_frn, pairwise~Recipient|zMagnitude, var="zEffort",at=mylist) %>% summary(infer = c(TRUE,TRUE))
- ################################################## The prosocial decision-making task #########################################################
- # Behavior analysis: RT
- print (summary(mod_RT <- lmer(ChoiceRT~ Recipient*zMagnitude*(zEffort+I(zEffort^2)) + (Recipient+zEffort+I(zEffort^2)+zMagnitude | Subject),
- data=a3, control = lmerControl(optimizer = 'bobyqa'), REML = FALSE)))
- tab_model(mod_RT, p.val = "satterthwaite")
- # Slope analyses for RT
- # recipient * effort
- emtrends(mod_RT, pairwise~Recipient, var="zEffort") %>% summary(infer = c(TRUE,TRUE))
- # recipient * magnitude
- emtrends(mod_RT, pairwise~Recipient, var="zMagnitude") %>% summary(infer = c(TRUE,TRUE))
- # linear effort * magnitude
- emtrends(mod_RT, pairwise~zMagnitude, var="zEffort",at=list(zMagnitude=c(1,-1))) %>% summary(infer = c(TRUE,TRUE))
- # the pure quadratic effort * magnitude
- eff_levels <- c(-1, 0, 1)
- mag_levels <- c(-1, 1)
- emm <- emmeans(mod_RT, ~ zEffort | zMagnitude, at = list(zEffort = eff_levels, zMagnitude = mag_levels))
- contrast(emm, method = "poly", max.degree = 2, by = "zMagnitude") %>% summary(infer = c(TRUE, TRUE))
- contrast(emm, interaction = c("poly", "pairwise"), max.degree = 2, by = NULL)
- # Behavior analysis: Choice
- print (summary(mod_choice <- glmer(Choice~ Recipient*zEffort*zMagnitude + (Recipient+zEffort+zMagnitude | Subject),
- data=a3, family=binomial, control = glmerControl(optimizer = 'bobyqa'))))
- tab_model(mod_choice,transform = NULL)
- # Slope analyses for choice
- # the interaction between recipient and effort
- emtrends(mod_choice, revpairwise ~ Recipient, var="zMagnitude")%>% summary( infer = c(TRUE, TRUE))
- # the interaction between effort and magnitude
- emtrends(mod_choice, revpairwise ~ zMagnitude, var="zEffort", at=list(zMagnitude=c(1,-1)))%>% summary(infer = c(TRUE, TRUE))
- ######################################################################### Rating data #########################################################
- ###############################################################################################################################################
- contrasts(Rat$Recipient) <- contr.sdif(2)
- # difficulty rating
- print (summary(mod_difficulty<- lmer(Rating~ Recipient*zEffort + (Recipient+zEffort | Subject),
- data=Rat[Rat$Items=='Difficulity',], control = lmerControl(optimizer = 'bobyqa'), REML = FALSE)))
- # effort rating
- print (summary(mod_effort <- lmer(Rating~ Recipient*zEffort + (Recipient+zEffort | Subject),
- data=Rat[Rat$Items=='Effort',], control = lmerControl(optimizer = 'bobyqa'), REML = FALSE)))
- # liking rating
- print (summary(mod_like <- lmer(Rating~ Recipient*zEffort + (Recipient+zEffort | Subject),
- data=Rat[Rat$Items=='Like',], control = lmerControl(optimizer = 'bobyqa'), REML = FALSE)))
- tab_model(mod_difficulty, mod_effort, mod_like, p.val = "satterthwaite")
- # interaction between recipient and effort for liking data
- emtrends(mod_like, ~ Recipient, var="zEffort") %>% summary(infer = c(TRUE,TRUE))
- # Correlations between self-reported data
- df_combined <- Rat %>%
- mutate(Items = recode(Items, "Effort" = "EffortRating")) %>%
- select(Subject, Items, Rating) %>%
- pivot_wider(names_from = Items, values_from = Rating, values_fn = mean)
- df_combined %>% cor_test(vars = c("Difficulity", "EffortRating", "Like")) %>% adjust_pvalue(method = "fdr")
- ############################################################### Other task parameters #########################################################
- # catch-trial data
- check <- read_xlsx('Behavior/catchtrial.xlsx') %>%
- filter(!is.na(effortchoice)) %>%
- mutate(
- effortcho = case_when(effortchoice == 1 ~ 2, effortchoice == 2 ~ 3, effortchoice == 3 ~ 4, effortchoice == 4 ~ 5, effortchoice == 5 ~ 6),
- rewardcho = case_when(rewardchoice == 0.1 ~ 0.2, rewardchoice == 0.2 ~ 0.4, rewardchoice == 0.3 ~ 0.6, rewardchoice == 0.4 ~ 0.8, rewardchoice == 0.5 ~ 1),
- EffACC = ifelse(effortcho == EffortLevel, 1, 0),
- RewACC = ifelse(rewardcho == Cpoint, 1, 0)
- ) %>%
- filter(!Subject %in% exclude_subs)
- checkACC <- check %>% group_by(Subject) %>%
- summarise(mEffACC = mean(EffACC, na.rm = TRUE),
- mRewACC = mean(RewACC, na.rm = TRUE) )
- print(checkACC)
- # averaged number of button presses across three trials ----
- subMPN <- a2 %>% group_by(Subject) %>% summarise(MPN = mean(MeanMaxNum, na.rm = TRUE))
- summary(subMPN$MPN)
- ################################################## Cross task analysis ##########################################################################
- # Whether k values estimated from the prosocial decision-making task influence the neural after-effects?
- # data preparation
- k_lookup <- Mdl %>%
- select(Subject, Self_logk, Other_logk) %>%
- mutate(Subject = as.factor(Subject)) %>%
- pivot_longer(cols = c(Self_logk, Other_logk),names_to = "Recipient",values_to = "logk") %>%
- mutate(Recipient = case_when(Recipient == "Self_logk" ~ "Self",Recipient == "Other_logk" ~ "Other"))
- a2 <- a2 %>%
- left_join(k_lookup, by = c("Subject", "Recipient")) %>%
- mutate(zlogk = as.numeric(scale(logk)))
- a3_summary <- a3 %>%
- group_by(Subject, Recipient) %>%
- summarise(p_choice = mean(Choice == 1, na.rm = TRUE), .groups = "drop") %>%
- mutate(Recipient = case_when(Recipient == "self" ~ "Self",Recipient == "other" ~ "Other"))
- a2 <- a2 %>%
- left_join(a3_summary, by = c("Subject", "Recipient")) %>%
- # group_by(Recipient) %>%
- mutate(zp_choice = as.numeric(scale(p_choice))) # %>% ungroup()
- a2$Recipient <-factor(a2$Recipient, levels = c( "Self","Other"))
- contrasts(a2$Recipient) <- contr.sdif(2)
- # log K
- print (summary(mod_frn_logk <- lmer(FRN~ Recipient*zEffort*zMagnitude*Valence*zlogk + (Recipient+zEffort+zMagnitude | Subject),
- data=a2, control = lmerControl(optimizer = 'bobyqa'), REML = FALSE)))
- tab_model(mod_frn_logk, p.val = "satterthwaite")
- mylist <- list(zMagnitude=c(-1,1),zlogk=c(-1,1),zEffort=c(-1,1))
- emtrends(mod_frn_logk,pairwise ~Recipient|zMagnitude + zlogk, var="zEffort",at=mylist) %>% summary(infer = c(TRUE, TRUE))
- # choice proportions
- print (summary(mod_frn_choice <- lmer(FRN~ Recipient*zEffort*zMagnitude*Valence*zp_choice + (Recipient+zEffort+zMagnitude | Subject),
- data=a2, control = lmerControl(optimizer = 'bobyqa'), REML = FALSE)))
- tab_model(mod_frn_choice, p.val = "satterthwaite")
- mylist <- list(zMagnitude=c(-1,1),zp_choice=c(-1,1),zEffort=c(-1,1))
- emtrends(mod_frn_choice,pairwise ~Recipient|zMagnitude + zp_choice, var="zEffort",at=mylist) %>% summary(infer = c(TRUE, TRUE))
- ################################################## Control analysis ############################################################
- # control for response speed and self-reported effort rating
- # z-scoring response speed
- a2<-a2%>%group_by(Subject)%>%mutate(zSpeed=as.numeric(scale(Speed)) )%>%ungroup()
- # control for effort rating
- effort_rating <- Rat[Rat$Items=='Effort',] %>% group_by(Subject) %>%
- mutate(ceffort_rating = as.vector(scale(Rating,scale = FALSE))) %>% ungroup() %>%
- select("Subject","Recipient","Effort", "Rating","ceffort_rating") %>%
- rename("effort_rating" = "Rating")
- a2 <- a2 %>%
- left_join(
- effort_rating %>%
- mutate(Effort = as.factor(Effort)) %>%
- select(Subject, Recipient, Effort, effort_rating, ceffort_rating),
- by = c("Subject", "Recipient", "Effort")
- )
- a2$Recipient <-factor(a2$Recipient, levels = c( "Self","Other"))
- contrasts(a2$Recipient) <- contr.sdif(2)
- # include response speed as a covariate
- print (summary(mod_frn_speed <- lmer(FRN~ Recipient*zEffort*zMagnitude*Valence+zSpeed + (Recipient+zEffort+zMagnitude | Subject),
- data=a2, control = lmerControl(optimizer = 'bobyqa'), REML = FALSE)))
- # include effort rating as a covariate
- print (summary(mod_frn_effrat <- lmer(FRN~ Recipient*zEffort*zMagnitude*Valence+effort_rating + (Recipient+zEffort+zMagnitude | Subject),
- data=a2, control = lmerControl(optimizer = 'bobyqa'), REML = FALSE)))
- tab_model(mod_frn_speed,mod_frn_effrat, p.val = "satterthwaite")
Data_analysis.R, no license · at the source
Overview
- Department of Psychology, Guangzhou University, Guangzhou, China
- Center for Reward and Social Cognition, School of Education, Guangzhou University, Guangzhou, China
- Guangdong Provincial Key Laboratory of Social Cognitive Neuroscience and Mental Health and Department of Psychology, Sun Yat-sen University, Guangzhou, China
- Department of Psychology, Dalian Medical University, Dalian, China
Abstract
Engaging in prosocial behavior requires effort, yet people are often averse to exerting effort for others’ benefit. However, it remains unclear how effort exertion affects subsequent reward evaluation during prosocial acts. Here, we combined high-temporal-resolution
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 1 match between paragraphs and lines of code.
OSF bvpa2
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
3 files
- Data/
Prosocial_Effort_EEG.Rmd , R, 472 lines - Scripts/
Data_analysis.R , R, 372 lines, 1 match - README.md, Text, 89 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;
- 2 scripts, each with its path and the digest of its content;
- 1 match between paragraphs of the paper and lines of the code (method lexical-v1);
- 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.
Data availability
Data and code that support the findings of this study are available on Open Science Framework at https://
The following dataset was generated:
Zheng Y. 2026. Effort produces after-effects costly for others but valued for self. Open Science Framework. bvpa2
Reproduced under the paper's license (CC BY), 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, 28 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 2 authors, 1 keyword, 6 MeSH terms, 2 funders, 54 references.
Cite
This paper
Zheng, Y., & Tang, R. (2026). Effort produces after-effects costly for others but valued for self. eLife, 13, RP103566. https://
BibTeX
@article{zheng2026effort
author = {Zheng, Ya and Tang, Rumeng},
title = {{Effort produces after-effects costly for others but valued for self}},
journal = {eLife},
year = {2026},
month = may,
volume = {13},
pages = {RP103566},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/
url = {https://
pmid = {42132118},
pmcid = {PMC13175574}
}
RIS
TY - JOUR
AU - Zheng, Ya
AU - Tang, Rumeng
TI - Effort produces after-effects costly for others but valued for self
T2 - eLife
J2 - eLife
PY - 2026
DA - 2026/
VL - 13
SP - RP103566
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.7554/
"type": "article-journal",
"title": "Effort produces after-effects costly for others but valued for self",
"container-title": "eLife",
"author": [
{
"family": "Zheng",
"given": "Ya"
},
{
"family": "Tang",
"given": "Rumeng"
}
],
"container-title-short":
"volume": "13",
"page": "RP103566",
"DOI": "10.7554/
"PMID": "42132118",
"PMCID": "PMC13175574",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
14
]
]
}
}
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/scan/nsag030 [code]
- Delaying rewards reduces egoism bias during prosocial acts.Journal: Social cognitive and affective neuroscienceIn common: psych, emmeans, lme4, 3 other tools, EEG, 11 references, author Ya Zheng
- [2] doi:10.1093/scan/nsae063 [code]
- Neural dynamics underlying the illusion of control during reward processing.Journal: Social cognitive and affective neuroscienceIn common: psych, emmeans, lmerTest, 3 other tools, EEG, 8 references, author Ya Zheng
- [3] doi:10.1017/s0033291726103249 [code]
- Inefficient integration between effort and reward in anhedonia.Journal: Psychological medicineIn common: emmeans, lmerTest, lme4, 2 other tools, EEG, 8 references, author Ya Zheng
- [4] doi:10.1093/scan/nsag029 [code]
- Time and amount attributes exert distinct neural influences on gain and loss evaluation.Journal: Social cognitive and affective neuroscienceIn common: psych, emmeans, lme4, 1 other tool, EEG, 7 references, author Ya Zheng
- [5] doi:10.1002/hbm.26398 [code]
- Neural dissociation between reward and salience prediction errors through the lens of optimistic bias.Journal: Human brain mappingIn common: emmeans, lme4, ggplot2, 1 other tool, EEG, 8 references, author Ya Zheng
- [6] doi:10.1016/j.cub.2022.08.010 [code]
- Distinct neural representations for prosocial and self-benefiting effort.Journal: Current biology : CBIn common: rstatix, psych, lme4, 2 other tools, 6 references
- [7] doi:10.1038/s41598-024-60328-8 [code]
- Prediction-error-depende
nt processing of immediate and delayed positive feedback. Journal: Scientific reportsIn common: rstatix, psych, emmeans, 4 other tools, EEG, 5 references - [8] doi:10.7554/elife.87271 [code]
- Acute stress reduces effortful prosocial behaviour.Journal: eLifeIn common: psych, emmeans, lmerTest, 4 other tools, 4 references
- [9] doi:10.1016/j.neuroimage.2026.122115 [code]
- Midfrontal theta power relates to response speeding following frustrative nonreward.Journal: NeuroImageIn common: rstatix, psych, emmeans, 5 other tools, EEG, 4 references
- [10] doi:10.3758/s13415-025-01303-2 [code]
- Impaired reinforcement learning and coding of prediction errors in patients with cerebellar degeneration - a study with EEG and voxel-based morphometry.Journal: Cognitive, affective & behavioral neuroscienceIn common: rstatix, psych, lmerTest, 4 other tools, EEG, 3 references
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 1 match 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:b71c7f395e02e148…
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.7554/elife.103566)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.7554/elife.103566.svg
:target: https://openscicode.org/badge/doi/10.7554/elife.103566
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.7554/elife.103566"><img src="https://openscicode.org/badge/doi/10.7554/elife.103566.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.
