Inefficient integration between effort and reward in anhedonia.
The 1 match
- [1] § Material and methods › EEG recording and processing ↔ Analysis_code.R, lines 1–51 · score 0.76 · 276 ms, 324 ms, 376 ms, 424 ms, 450 ms, RewP
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 · 401 lines · 23 KB · no license · 1 match
- rm(list=ls())
- ###########################################################################################
- # load required packages
- pacman::p_load(R.matlab,dplyr,ggplot2,lme4,lmerTest,emmeans,effects,tidyverse,sjPlot,MASS)
- # set path to folder containing this script
- setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
- ### Load data: ----
- # 1) Behavioral data ----
- a1 <- read.csv('Behavior/behavior_data.csv')
- a2 <- read.csv('Behavior/choice_data.csv')
- r1 <- read.csv('Behavior/rating_data.csv')
- # 2) Neural signal data ----
- electrode <- 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')
- # CueP3 [456 556] CPZ CP3 CP4 PZ P3 P4
- CueP3 = readMat('EEG/CueP3440600.mat' )
- CueP3 = CueP3$CueP3440600
- CueP3 = as.data.frame(CueP3)
- colnames(CueP3) <- electrode
- a1$CueP3 <- apply(cbind (CueP3$CP3, CueP3$CPZ, CueP3$CP4,CueP3$P3, CueP3$PZ, CueP3$P4),1, mean) # computes average activation in ROI
- # RewP [276 376] FCZ FC3 FC4
- RewP = readMat('EEG/RewP276376.mat')
- RewP = RewP$RewP276376
- RewP = as.data.frame(RewP)
- colnames(RewP)<- electrode
- a1$RewP <- apply(cbind ( RewP$FCz, RewP$FC3,RewP$FC4),1, mean) # computes average activation in ROI
- # feedback-P3 [324 424] PZ P3 P4
- fbP3 = readMat('EEG/fbP3324424.mat')
- fbP3 = fbP3$fbP3324424
- fbP3 = as.data.frame(fbP3)
- colnames(fbP3)<- electrode
- a1$fbP3 <- apply(cbind (fbP3$P3, fbP3$PZ, fbP3$P4),1, mean) # computes average activation in ROI
- # performP3 [250 450] PZ P3 P4
- PerformP3 = readMat('EEG/PerformP3250450.mat')
- PerformP3 = PerformP3$PerformP3250450
- PerformP3 = as.data.frame(PerformP3)
- colnames(PerformP3)<- electrode
- a1$PerformP3<- apply(cbind (PerformP3$Pz, PerformP3$P3, PerformP3$P4),1, mean)
- # ChoiceTheta [100 400] FCz
- theta = readMat('EEG/theta100400.mat')
- theta = theta$theta100400
- theta = as.data.frame(theta)
- frex = pracma::logspace(log10(1),log10(30),30) %>% round(digits = 4)
- colnames(theta) <- frex
- fidx <- c(which.min(abs(frex-4)), which.min(abs(frex-7)))
- a2$theta <- apply(theta[,fidx[1]:fidx[2]], 1, mean)
- # remove outliers
- for (i in levels(a1$Subject) )
- { print(i)
- a1[a1$Subject==i,]$CompleteRT <- outliers_mad(a1[a1$Subject==i,]$CompleteRT, 4)
- a1[a1$Subject==i,]$CueP3 <- outliers_mad(a1[a1$Subject==i,]$CueP3, 4)
- a1[a1$Subject==i,]$PerformP3 <- outliers_mad(a1[a1$Subject==i,]$PerformP3, 4)
- a1[a1$Subject==i,]$RewP <- outliers_mad(a1[a1$Subject==i,]$RewP, 4)
- a1[a1$Subject==i,]$fbP3 <- outliers_mad(a1[a1$Subject==i,]$fbP3, 4)
- }
- # as factor & standardize of effort phase
- a1$Subject <- as.factor(a1$Subject)
- a1 <- a1 %>% mutate(group = ifelse(group == 1,"CNT","ANH") )
- a1$group<-factor(a1$group, levels = c("CNT","ANH"))
- contrasts(a1$group) <- contr.sdif(2)
- a1<-a1%>%mutate(Complete=ifelse(Complete==0,0,1))
- a1<-a1%>%mutate(zEffort=scale(Effort, scale=TRUE, center=TRUE) )
- a1$zEffort <- as.vector(a1$zEffort)
- a1<-a1%>%mutate(zMagnitude=scale(Magnitude, scale=TRUE, center=TRUE) )
- a1$zMagnitude <- as.vector(a1$zMagnitude)
- a1 <- a1 %>% mutate(valence = ifelse(RewardType==0.0 ,"Loss", "Gain") )
- a1$valence<-factor(a1$valence, levels = c("Loss","Gain"))
- contrasts(a1$valence) <- contr.sdif(2)
- # remove outliers of choice phase
- a2 <- a2 %>% mutate( theta= ifelse(Subject==102,NaN, theta) ) # delete neural data of subject 102
- for (i in levels(a2$Subject) )
- { print(i)
- a2[a2$Subject==i,]$ChoiceRT <- outliers_mad(a2[a2$Subject==i,]$ChoiceRT, 4)
- a2[a2$Subject==i,]$theta <- outliers_mad(a2[a2$Subject==i,]$theta, 4)
- }
- # as factor & standardize of choice phase
- a2$Subject <- as.factor(a2$Subject)
- a2 <- a2 %>% mutate(group = ifelse(group == 1,"CNT","ANH") )
- a2$group<-factor(a2$group, levels = c("CNT","ANH"))
- contrasts(a2$group) <- contr.sdif(2)
- a2 <- a2 %>% mutate(Choice = ifelse(Choice==2,NaN, Choice))
- a2<-a2%>%mutate(Choice=ifelse(Choice==3,0,1))
- # a2$Choice <- as.factor(a2$Choice)
- # contrasts(a2$Choice) <- contr.sdif(2)
- a2<-a2%>%mutate(zEffort=scale(Effort, scale=TRUE, center=TRUE) );
- a2$zEffort <- as.vector(a2$zEffort)
- a2<-a2%>%mutate(zMagnitude=scale(Magnitude, scale=TRUE, center=TRUE) );
- a2$zMagnitude <- as.vector(a2$zMagnitude)
- for (i in levels(a2$Subject) )
- { print(i)
- a2$ztheta[a2$Subject==i] <- scale(a2$theta[a2$Subject==i], scale= TRUE, center=TRUE )
- # a2$zRT[a2$Subject==i] <- scale(a2$ChoiceRT[a2$Subject==i], scale= TRUE, center=TRUE )
- }
- # change the Rating data into longer format
- r2<-pivot_longer(data = r1,
- cols = c(Liking_Effort1, Liking_Effort2, Liking_Effort3, Liking_Effort4,Liking_Effort5),
- names_to = c("EffortLevel"), values_to = "Liking",
- names_pattern = "(1|2|3|4|5)") %>% dplyr::select(SubID,group,Liking)
- r3<-pivot_longer(data = r1,
- cols = c(Tired_Effort1, Tired_Effort2, Tired_Effort3, Tired_Effort4,Tired_Effort5 ),
- names_to = c("EffortLevel"), values_to = "Tired",
- names_pattern = "(1|2|3|4|5)") %>% dplyr::select(Tired)
- r4<-pivot_longer(data = r1,
- cols = c(PhyRequire_Effort1, PhyRequire_Effort2, PhyRequire_Effort3, PhyRequire_Effort4,PhyRequire_Effort5),
- names_to = c("EffortLevel"), values_to = "PhyRequire",
- names_pattern = "(1|2|3|4|5)") %>% dplyr::select(PhyRequire)
- r5<-pivot_longer(data = r1,
- cols = c(TimeStress_Effort1, TimeStress_Effort2, TimeStress_Effort3, TimeStress_Effort4,TimeStress_Effort5 ),
- names_to = c("EffortLevel"), values_to = "TimeStress",
- names_pattern = "(1|2|3|4|5)") %>% dplyr::select(TimeStress)
- r6<-pivot_longer(data = r1,
- cols = c(Perform_Effort1, Perform_Effort2, Perform_Effort3, Perform_Effort4,Perform_Effort5 ),
- names_to = c("EffortLevel"), values_to = "Perform",
- names_pattern = "(1|2|3|4|5)") %>% dplyr::select(Perform)
- r7<- cbind(r2,r3,r4,r5,r6)%>%mutate(EffortLevel = (rep(c(1,2,3,4,5),times = length(r1$SubID))))
- r8<-pivot_longer(data = r7,
- cols = c(Liking,Tired,PhyRequire,TimeStress,Perform),
- names_to = c("Items"), values_to = "Rating",
- names_pattern = "(Liking|Tired|PhyRequire|TimeStress|Perform)") %>% dplyr::select(-Items)%>%
- mutate(Items = (rep(c("Liking","Tired","PhyRequire","TimeStress","Perform"),times = length(r1$SubID)*5)))
- # as factor & standardize of rating data
- r8$SubID <- as.factor(r8$SubID)
- r8$group<-factor(r8$group, levels = c("CNT","ANH"))
- contrasts(r8$group) <- contr.sdif(2)
- r8<-r8%>%mutate(zEffort=scale(as.numeric(EffortLevel), scale=TRUE, center=TRUE) )
- r8$zEffort <- as.vector(r8$zEffort)
- ### Analyses: ----
- # 3.1 Results of rating data ----
- print (summary(mod_liking <- lmer(Rating ~ group*zEffort+(1| SubID) ,data= r8[r8$Items=="Liking",])))
- # Fixed effects:
- # Estimate Std. Error df t value Pr(>|t|)
- # (Intercept) 6.98250 0.13913 78.00000 50.186 <2e-16 ***
- # group2-1 -0.49500 0.27827 78.00000 -1.779 0.0792 .
- # zEffort -1.26604 0.06758 318.00000 -18.735 <2e-16 ***
- # group2-1:zEffort -0.36071 0.13515 318.00000 -2.669 0.0080 **
- print (summary(mod_effort <- lmer(Rating ~ group*zEffort+(1| SubID),data= r8[r8$Items=="PhyRequire",])))
- # Fixed effects:
- # Estimate Std. Error df t value Pr(>|t|)
- # (Intercept) 3.56250 0.11651 78.00000 30.576 <2e-16 ***
- # group2-1 0.09500 0.23302 78.00000 0.408 0.685
- # zEffort 2.09356 0.06241 318.00000 33.546 <2e-16 ***
- # group2-1:zEffort -0.07073 0.12482 318.00000 -0.567 0.571
- print (summary(mod_Tired <- lmer(Rating ~ group*zEffort+(1| SubID),data= r8[r8$Items=="Tired",])))
- # Fixed effects:
- # Estimate Std. Error df t value Pr(>|t|)
- # (Intercept) 3.62500 0.12297 78.00000 29.479 <2e-16 ***
- # group2-1 0.14000 0.24594 78.00000 0.569 0.571
- # zEffort 2.07588 0.06315 318.00000 32.874 <2e-16 ***
- # group2-1:zEffort -0.20511 0.12629 318.00000 -1.624 0.105
- print (summary(mod_TimeStress <- lmer(Rating ~ group*zEffort+(1| SubID),data= r8[r8$Items=="TimeStress",])))
- # Fixed effects:
- # Estimate Std. Error df t value Pr(>|t|)
- # (Intercept) 3.53500 0.12518 78.00000 28.240 <2e-16 ***
- # group2-1 0.28000 0.25035 78.00000 1.118 0.267
- # zEffort 2.04759 0.06376 318.00001 32.116 <2e-16 ***
- # group2-1:zEffort 0.13438 0.12751 318.00001 1.054 0.293
- print (summary(mod_Perform <- lmer(Rating ~ group*zEffort+(1| SubID),data= r8[r8$Items=="Perform",])))
- # Fixed effects:
- # Estimate Std. Error df t value Pr(>|t|)
- # (Intercept) 7.30500 0.13823 78.00000 52.847 <2e-16 ***
- # group2-1 -0.65000 0.27646 78.00000 -2.351 0.0212 *
- # zEffort -1.14934 0.06556 318.00000 -17.531 <2e-16 ***
- # group2-1:zEffort -0.13438 0.13112 318.00000 -1.025 0.3062
- tab_model(mod_liking,mod_effort,mod_Perform,mod_Tired,mod_TimeStress)
- # 3.2 Results of the effort-reward task
- # 3.2.1 Behavioral data ----
- # a) success rate
- print (summary(mod_complete <- glmer(data=a1, Complete~ group*zEffort*zMagnitude+(zEffort|Subject),family=binomial,control=glmerControl("bobyqa"))))
- # Fixed effects:
- # Estimate Std. Error z value Pr(>|z|)
- # (Intercept) 10.4117 1.2720 8.185 2.72e-16 ***
- # group2-1 -2.0493 1.5001 -1.366 0.172
- # zEffort -5.7306 0.9085 -6.308 2.83e-10 ***
- # zMagnitude -0.8350 0.5531 -1.510 0.131
- # group2-1:zEffort 1.3533 1.0770 1.257 0.209
- # group2-1:zMagnitude 0.2713 1.0985 0.247 0.805
- # zEffort:zMagnitude 0.5880 0.3963 1.484 0.138
- # group2-1:zEffort:zMagnitude -0.2196 0.7869 -0.279 0.780
- tab_model(mod_complete, transform = NULL)
- # b) completion RT
- print (summary(mod_CompleteRT <- lmer(CompleteRT~ group*zEffort*zMagnitude+(zEffort|Subject), data=a1, REML=FALSE, control=lmerControl("bobyqa"))))
- # Fixed effects:
- # Estimate Std. Error df t value Pr(>|t|)
- # (Intercept) 3.213e+00 2.481e-02 7.900e+01 129.510 < 2e-16 ***
- # group2-1 3.624e-02 4.962e-02 7.900e+01 0.730 0.46726
- # zEffort 1.621e+00 1.144e-02 7.900e+01 141.730 < 2e-16 ***
- # zMagnitude -9.360e-03 3.348e-03 1.169e+04 -2.796 0.00519 **
- # group2-1:zEffort 3.877e-02 2.288e-02 7.900e+01 1.695 0.09406 .
- # group2-1:zMagnitude -5.907e-03 6.696e-03 1.169e+04 -0.882 0.37770
- # zEffort:zMagnitude -7.221e-03 3.348e-03 1.169e+04 -2.157 0.03105 *
- # group2-1:zEffort:zMagnitude -4.386e-03 6.697e-03 1.169e+04 -0.655 0.51251
- tab_model(mod_CompleteRT)
- mylist <- list(zEffort=c(1,-1))
- emtrends(mod_CompleteRT, pairwise~zEffort, var="zMagnitude",at=mylist,pbkrtest.limit = 11850) %>% summary(infer = c(TRUE,TRUE))
- # $emtrends
- # zEffort zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
- # 1 -0.01658 0.00474 11696 -0.0259 -0.00730 -3.501 0.0005
- # -1 -0.00214 0.00474 11696 -0.0114 0.00714 -0.452 0.6515
- # 3.2.2 Neural signal data ----
- # a) Cue-P3
- print (summary(mod_cueP3 <- lmer(CueP3~ group*zEffort*zMagnitude+(zEffort|Subject),data = a1,REML=FALSE, control=lmerControl("bobyqa"))))
- # Fixed effects:
- # Estimate Std. Error df t value Pr(>|t|)
- # (Intercept) 4.983e+00 3.148e-01 7.991e+01 15.826 <2e-16 ***
- # group2-1 -7.539e-01 6.297e-01 7.991e+01 -1.197 0.2347
- # zEffort 1.196e+00 1.095e-01 7.974e+01 10.923 <2e-16 ***
- # zMagnitude 1.326e-01 7.528e-02 1.148e+04 1.762 0.0781 .
- # group2-1:zEffort -3.312e-01 2.191e-01 7.974e+01 -1.512 0.1345
- # group2-1:zMagnitude -3.143e-01 1.506e-01 1.148e+04 -2.088 0.0368 *
- # zEffort:zMagnitude 1.157e-01 7.529e-02 1.148e+04 1.536 0.1245
- # group2-1:zEffort:zMagnitude -2.900e-02 1.506e-01 1.148e+04 -0.193 0.8473
- tab_model(mod_cueP3)
- emtrends(mod_cueP3, pairwise~group, var="zMagnitude", infer=T,pbkrtest.limit = 11635)
- # $emtrends
- # group zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
- # CNT 0.2898 0.107 11483 0.0807 0.499 2.717 0.0066
- # ANH -0.0245 0.106 11481 -0.2329 0.184 -0.231 0.8175
- # b) RewP
- print (summary(mod_RewP <- lmer(RewP~ group*zEffort*zMagnitude*valence+(zEffort+zMagnitude+valence|Subject),data = a1,REML=FALSE, control=lmerControl("bobyqa"))))
- # Fixed effects:
- # Estimate Std. Error df t value Pr(>|t|)
- # (Intercept) 3.430e+00 3.514e-01 7.972e+01 9.760 2.94e-15 ***
- # group2-1 1.573e+00 7.028e-01 7.972e+01 2.239 0.02795 *
- # zEffort -3.711e-02 1.281e-01 7.933e+01 -0.290 0.77284
- # zMagnitude 5.384e-01 1.016e-01 7.913e+01 5.297 1.03e-06 ***
- # valence2-1 1.259e+00 2.074e-01 7.890e+01 6.073 4.16e-08 ***
- # group2-1:zEffort 3.077e-01 2.563e-01 7.933e+01 1.201 0.23341
- # group2-1:zMagnitude 3.242e-01 2.033e-01 7.913e+01 1.595 0.11473
- # zEffort:zMagnitude -2.387e-01 8.570e-02 1.127e+04 -2.786 0.00535 **
- # group2-1:valence2-1 -8.461e-01 4.148e-01 7.890e+01 -2.040 0.04471 *
- # zEffort:valence2-1 -1.115e-01 1.713e-01 1.126e+04 -0.651 0.51505
- # zMagnitude:valence2-1 4.207e-01 1.708e-01 1.125e+04 2.463 0.01377 *
- # group2-1:zEffort:zMagnitude 2.246e-01 1.714e-01 1.127e+04 1.311 0.19004
- # group2-1:zEffort:valence2-1 1.847e-01 3.427e-01 1.126e+04 0.539 0.58996
- # group2-1:zMagnitude:valence2-1 -5.454e-03 3.416e-01 1.125e+04 -0.016 0.98726
- # zEffort:zMagnitude:valence2-1 9.489e-02 1.714e-01 1.125e+04 0.554 0.57982
- # group2-1:zEffort:zMagnitude:valence2-1 3.700e-02 3.428e-01 1.125e+04 0.108 0.91404
- tab_model(mod_RewP)
- emtrends(mod_RewP, ~valence, var="zMagnitude",at=mylist,infer=T,pbkrtest.limit = 11557)
- # valence zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
- # Loss 0.328 0.134 238 0.0645 0.592 2.452 0.0149
- # Gain 0.749 0.134 238 0.4852 1.012 5.597 <.0001
- mylist <- list(zEffort=c(1,-1))
- emtrends(mod_RewP, ~zEffort, var="zMagnitude",at=mylist,pbkrtest.limit = 11557) %>% summary(infer = c(TRUE,TRUE))
- # zEffort zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
- # 1 0.300 0.135 244 0.0342 0.565 2.224 0.0271
- # -1 0.777 0.133 234 0.5147 1.040 5.834 <.0001
- emmeans(mod_RewP,pairwise~valence|group,infer=T,pbkrtest.limit = 11557)
- # $contrasts
- # group = CNT:
- # contrast estimate SE df lower.CL upper.CL t.ratio p.value
- # Loss - Gain -1.683 0.297 82.2 -2.27 -1.092 -5.662 <.0001
- #
- # group = ANH:
- # contrast estimate SE df lower.CL upper.CL t.ratio p.value
- # Loss - Gain -0.834 0.297 81.8 -1.43 -0.244 -2.811 0.0062
- # c) Feedback-P3
- print (summary(mod_fbP3 <- lmer(fbP3~ group*zEffort*zMagnitude*valence+(zMagnitude+valence|Subject),data = a1,REML=FALSE, control=lmerControl("bobyqa"))))
- # Fixed effects:
- # Estimate Std. Error df t value Pr(>|t|)
- # (Intercept) 5.317e+00 4.498e-01 7.990e+01 11.819 < 2e-16 ***
- # group2-1 1.623e+00 8.997e-01 7.990e+01 1.804 0.0750 .
- # zEffort 4.069e-02 8.250e-02 1.133e+04 0.493 0.6218
- # zMagnitude 5.189e-01 1.010e-01 7.921e+01 5.139 1.94e-06 ***
- # valence2-1 1.286e+00 2.145e-01 7.938e+01 5.995 5.70e-08 ***
- # group2-1:zEffort 2.241e-01 1.650e-01 1.133e+04 1.358 0.1744
- # group2-1:zMagnitude 1.447e-01 2.020e-01 7.921e+01 0.717 0.4757
- # zEffort:zMagnitude -1.884e-01 8.251e-02 1.134e+04 -2.283 0.0225 *
- # group2-1:valence2-1 -6.521e-01 4.291e-01 7.938e+01 -1.520 0.1325
- # zEffort:valence2-1 -2.472e-01 1.650e-01 1.133e+04 -1.498 0.1341
- # zMagnitude:valence2-1 7.090e-01 1.644e-01 1.133e+04 4.312 1.63e-05 ***
- # group2-1:zEffort:zMagnitude -1.080e-01 1.650e-01 1.134e+04 -0.655 0.5127
- # group2-1:zEffort:valence2-1 7.048e-01 3.299e-01 1.133e+04 2.136 0.0327 *
- # group2-1:zMagnitude:valence2-1 5.231e-02 3.289e-01 1.133e+04 0.159 0.8736
- # zEffort:zMagnitude:valence2-1 4.165e-01 1.650e-01 1.133e+04 2.525 0.0116 *
- # group2-1:zEffort:zMagnitude:valence2-1 2.822e-02 3.300e-01 1.133e+04 0.086 0.9319
- tab_model(mod_fbP3)
- mylist <- list(zEffort=c(1,-1),group=c("CNT","ANH"))
- emtrends(mod_fbP3, ~zEffort|valence, var="zMagnitude",at=mylist,pbkrtest.limit = 11557) %>% summary(infer = c(TRUE,TRUE))
- # valence = Loss:
- # zEffort zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
- # 1 -0.232 0.176 726 -0.579 0.114 -1.316 0.1886
- # -1 0.561 0.174 698 0.218 0.904 3.216 0.0014
- #
- # valence = Gain:
- # zEffort zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
- # 1 0.893 0.177 735 0.546 1.241 5.048 <.0001
- # -1 0.854 0.175 701 0.511 1.196 4.886 <.0001
- emtrends(mod_fbP3, ~group|valence, var="zEffort",pbkrtest.limit = 11557) %>% summary(infer = c(TRUE,TRUE))
- # valence = Loss:
- # group zEffort.trend SE df lower.CL upper.CL t.ratio p.value
- # CNT 0.230 0.165 11338 -0.0932 0.5535 1.395 0.1630
- # ANH 0.102 0.164 11345 -0.2196 0.4245 0.624 0.5329
- #
- # valence = Gain:
- # group zEffort.trend SE df lower.CL upper.CL t.ratio p.value
- # CNT -0.371 0.165 11338 -0.6954 -0.0475 -2.248 0.0246
- # ANH 0.206 0.166 11343 -0.1192 0.5302 1.241 0.2148
- # d) Performance-P3
- print (summary(mod_PerformP3 <- lmer(PerformP3~ group*zEffort*zMagnitude+(zEffort|Subject),data = a1,REML=FALSE, control=lmerControl("bobyqa"))))
- # Fixed effects:
- # Estimate Std. Error df t value Pr(>|t|)
- # (Intercept) 1.848e+00 2.556e-01 7.967e+01 7.229 2.62e-10 ***
- # group2-1 3.235e-02 5.112e-01 7.967e+01 0.063 0.950
- # zEffort 4.853e-01 1.173e-01 7.910e+01 4.137 8.70e-05 ***
- # zMagnitude 2.855e-02 7.177e-02 1.121e+04 0.398 0.691
- # group2-1:zEffort 7.277e-02 2.346e-01 7.910e+01 0.310 0.757
- # group2-1:zMagnitude 3.776e-02 1.435e-01 1.121e+04 0.263 0.792
- # zEffort:zMagnitude -8.869e-02 7.201e-02 1.122e+04 -1.232 0.218
- # group2-1:zEffort:zMagnitude 1.184e-01 1.440e-01 1.122e+04 0.822 0.411
- tab_model(mod_PerformP3)
- # 3.3 Results of the effort-based decision-making task
- # 3.3.1 Behavioral data ----
- # a) choice rate
- print (summary(mod_choice <- glmer(data=a2, Choice~ group*zEffort*zMagnitude+(zEffort+zMagnitude|Subject),family=binomial,control=glmerControl("bobyqa"))))
- # Fixed effects:
- # Estimate Std. Error z value Pr(>|z|)
- # (Intercept) 7.04504 0.66087 10.660 <2e-16 ***
- # group2-1 0.01721 1.09119 0.016 0.9874
- # zEffort -2.26011 0.23915 -9.451 <2e-16 ***
- # zMagnitude 3.86089 0.38644 9.991 <2e-16 ***
- # group2-1:zEffort 0.75108 0.40631 1.849 0.0645 .
- # group2-1:zMagnitude -0.40774 0.60951 -0.669 0.5035
- # zEffort:zMagnitude 0.05601 0.09038 0.620 0.5354
- # group2-1:zEffort:zMagnitude -0.11238 0.17478 -0.643 0.5202
- tab_model(mod_choice, transform = NULL)
- emtrends(mod_choice, ~group, var="zEffort", infer=T,pbkrtest.limit = 11635) %>% summary(infer = c(TRUE,TRUE))
- # group zEffort.trend SE df asymp.LCL asymp.UCL z.ratio p.value
- # CNT -2.64 0.318 Inf -3.26 -2.01 -8.277 <.0001
- # ANH -1.88 0.309 Inf -2.49 -1.28 -6.097 <.0001
- # d) decision RT
- print (summary(mod_choiceRT <- lmer(ChoiceRT~ group*zEffort*zMagnitude+(1+zEffort|Subject), data=a2, REML=FALSE, control=lmerControl("bobyqa"))))
- # Fixed effects:
- # Estimate Std. Error df t value Pr(>|t|)
- # (Intercept) 587.259 23.119 80.000 25.402 < 2e-16 ***
- # group2-1 -50.795 46.238 80.000 -1.099 0.275
- # zEffort 25.146 5.149 80.000 4.884 5.24e-06 ***
- # zMagnitude -3.812 4.234 7840.000 -0.900 0.368
- # group2-1:zEffort -9.285 10.298 80.000 -0.902 0.370
- # group2-1:zMagnitude -10.266 8.468 7840.000 -1.212 0.225
- # zEffort:zMagnitude -3.361 4.234 7840.000 -0.794 0.427
- # group2-1:zEffort:zMagnitude 12.979 8.469 7840.000 1.532 0.125
- tab_model(mod_choiceRT)
- # 3.3.2 Neural signal data ----
- # a) choice-theta
- print (summary(mod_Theta <- lmer(theta~ group*zEffort*zMagnitude+(zEffort |Subject),data = a2,REML=FALSE, control=lmerControl("bobyqa"))))
- # Fixed effects:
- # Estimate Std. Error df t value Pr(>|t|)
- # (Intercept) 4.633e-01 3.906e-02 7.905e+01 11.861 < 2e-16 ***
- # group2-1 -4.337e-02 7.812e-02 7.905e+01 -0.555 0.580340
- # zEffort -7.641e-03 1.402e-02 7.890e+01 -0.545 0.587195
- # zMagnitude -3.901e-02 1.105e-02 7.496e+03 -3.529 0.000419 ***
- # group2-1:zEffort 1.390e-02 2.803e-02 7.890e+01 0.496 0.621310
- # group2-1:zMagnitude 4.849e-02 2.211e-02 7.496e+03 2.193 0.028310 *
- # zEffort:zMagnitude -7.976e-03 1.106e-02 7.499e+03 -0.721 0.470785
- # group2-1:zEffort:zMagnitude 5.583e-02 2.212e-02 7.499e+03 2.524 0.011614 *
- tab_model(mod_Theta)
- mylist <- list(zEffort=c(1,-1),group=c("CNT","ANH"))
- emtrends(mod_Theta, ~zEffort | group, var="zMagnitude",at=mylist,pbkrtest.limit = 7651) %>% summary(infer = c(TRUE,TRUE))
- # group = CNT:
- # zEffort zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
- # 1 -0.09915 0.0223 7504 -0.1428 -0.05548 -4.450 <.0001
- # -1 -0.02737 0.0222 7501 -0.0710 0.01623 -1.231 0.2185
- #
- # group = ANH:
- # zEffort zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
- # 1 0.00517 0.0219 7501 -0.0378 0.04816 0.236 0.8136
- # -1 -0.03470 0.0220 7501 -0.0779 0.00847 -1.576 0.1151
- # b) Could theta predict participants' effort choices
- print (summary(mod_choice_theta <- glmer(data=a2, Choice~ group*ztheta+(1|Subject),family=binomial,control=glmerControl("bobyqa"))))
- # Fixed effects:
- # Estimate Std. Error z value Pr(>|z|)
- # (Intercept) 2.36822 0.16520 14.336 <2e-16 ***
- # group2-1 0.43769 0.32484 1.347 0.1778
- # ztheta -0.03028 0.03507 -0.864 0.3878
- # group2-1:ztheta 0.19158 0.07014 2.732 0.0063 **
- tab_model(mod_choice_theta, transform = NULL)
- emtrends(mod_choice_theta, ~ group, var="ztheta",at=mylist) %>% summary(infer = c(TRUE,TRUE))
- # group ztheta.trend SE df asymp.LCL asymp.UCL z.ratio p.value
- # CNT -0.1261 0.0455 Inf -0.215 -0.0368 -2.769 0.0056
- # ANH 0.0655 0.0533 Inf -0.039 0.1701 1.228 0.2195
Analysis_code.R, no license · at the source
Overview
- Department of Mental Health and Psychology, Dalian Medical University, Dalian, China
- Department of Psychology, Guangzhou University, Guangzhou, China
Abstract
Background: Anhedonia is defined as a reduced interest in or inability to experience pleasure from reward-related activities. Recent studies have demonstrated deficient effort-based motivation in anhedonia, but the neural dynamics underlying the interface between effort and reward remain unclear.
Methods: To address this issue, we recruited an anhedonia (ANH) group (N = 40) and a control (CNT) group (N = 40) to complete two tasks: (1) an effort–reward task where participants earned varying rewards by exerting different levels of physical effort and (2) an effort-based decision-making task where they chose between a no-effort option for a smaller reward and a high-effort option for a larger reward. We recorded EEG during both tasks and analyzed the resulting neural responses.
Results: As expected, the ANH group showed reduced reward responses in both self-reported ratings and event-related potential (ERP) data in response to cue stimuli (indexed by the cue-P3) and reward feedback (indexed by the reward positivity). Importantly, the ANH group exhibited inefficient integration between effort and reward, showing an absent effort-discounting effect on the feedback-P3 during reward evaluation and a lack of reward-related theta modulation during effort-based decision-making.
Conclusions: Our findings suggest a neurodynamic motivation model in anhedonia that informs precise interventions for relevant neuropsychiatric disorders.
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 6wzk5
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
- 30 September 2026: the link answers (HTTP 200)
2 files
- Analysis_code.R, R, 401 lines, 1 match
- README.md, Text, 34 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;
- 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 statement
Data and code that support the findings of this study are available on Open Science Framework at https://
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, 30 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 5 authors, 5 keywords, 14 MeSH terms, 2 funders, 55 references.
Cite
This paper
Wang, Z., Zhou, S., Gao, B., Sang, H., & Zheng, Y. (2026). Inefficient integration between effort and reward in anhedonia. Psychological medicine, 56, e62. https://
BibTeX
@article{wang2026ineffic
author = {Wang, Zhao and Zhou, Shiyu and Gao, Bo and Sang, Haohan and Zheng, Ya},
title = {{Inefficient integration between effort and reward in anhedonia}},
journal = {Psychological medicine},
year = {2026},
month = mar,
volume = {56},
pages = {e62},
publisher = {Cambridge University Press},
issn = {0033-2917},
doi = {10.1017/
url = {https://
pmid = {41773068},
pmcid = {PMC12969199}
}
RIS
TY - JOUR
AU - Wang, Zhao
AU - Zhou, Shiyu
AU - Gao, Bo
AU - Sang, Haohan
AU - Zheng, Ya
TI - Inefficient integration between effort and reward in anhedonia
T2 - Psychological medicine
J2 - Psychol Med
PY - 2026
DA - 2026/
VL - 56
SP - e62
SN - 0033-2917
PB - Cambridge University Press
DO - 10.1017/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1017/
"type": "article-journal",
"title": "Inefficient integration between effort and reward in anhedonia",
"container-title": "Psychological medicine",
"author": [
{
"family": "Wang",
"given": "Zhao"
},
{
"family": "Zhou",
"given": "Shiyu"
},
{
"family": "Gao",
"given": "Bo"
},
{
"family": "Sang",
"given": "Haohan"
},
{
"family": "Zheng",
"given": "Ya"
}
],
"container-title-short":
"volume": "56",
"page": "e62",
"DOI": "10.1017/
"PMID": "41773068",
"PMCID": "PMC12969199",
"ISSN": "0033-2917",
"publisher": "Cambridge University Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
3
]
]
}
}
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.7554/elife.103566 [code]
- Effort produces after-effects costly for others but valued for self.Journal: eLifeIn common: emmeans, lmerTest, lme4, 2 other tools, EEG, 8 references, author Ya Zheng
- [2] doi:10.1111/ejn.70451 [code]
- Action or Stimulus: Individual Beliefs About Learned Associations Influence the Processing of Immediate and Delayed Feedback.Journal: The European journal of neuroscienceIn common: lmerTest, lme4, ggplot2, 1 other tool, EEG, cognitive, 4 references
- [3] doi:10.1016/j.neuroimage.2026.122115 [code]
- Midfrontal theta power relates to response speeding following frustrative nonreward.Journal: NeuroImageIn common: emmeans, lmerTest, lme4, 2 other tools, EEG, cognitive, 3 references
- [4] 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: emmeans, lmerTest, lme4, 2 other tools, EEG, 2 references
- [5] doi:10.1111/psyp.70306 [code]
- From Feedback-Learning to Semantic Memory: Can Feedback-Related Brain Activity Predict Object-Word Associations?Journal: PsychophysiologyIn common: lmerTest, lme4, ggplot2, 1 other tool, EEG, cognitive, 2 references
- [6] doi:10.1038/s41598-026-58046-4 [code]
- Dissecting the interplay of model-based control, impulsivity and compulsivity on self-control in daily life.Journal: Scientific reportsIn common: emmeans, lme4, ggplot2, 1 other tool, EEG, cognitive, 2 references
- [7] 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: emmeans, lmerTest, lme4, 2 other tools, EEG, cognitive, 1 reference
- [8] doi:10.1111/psyp.70265 [code]
- Neurocognitive Dynamics of Translating Information From a Spatial Map Into Action.Journal: PsychophysiologyIn common: emmeans, lmerTest, lme4, 2 other tools, EEG, cognitive, 1 reference
- [9] 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: emmeans, lmerTest, lme4, 2 other tools, cognitive, 1 reference
- [10] doi:10.1093/braincomms/fcag130 [code]
- Sleep increases firing rate modulation during interictal epileptiform discharges in mesial temporal structures.Journal: Brain communicationsIn common: emmeans, lmerTest, lme4, 2 other tools, EEG, 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, 1 script, 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:a5c6a55994333bc7…
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.
