OSCR

Inefficient integration between effort and reward in anhedonia.

Code ↔ Paper

1 match between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 1 match
  1. [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

  1. rm(list=ls())
  2. ###########################################################################################
  3. # load required packages
  4. pacman::p_load(R.matlab,dplyr,ggplot2,lme4,lmerTest,emmeans,effects,tidyverse,sjPlot,MASS)
  5. # set path to folder containing this script
  6. setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
  7. ### Load data: ----
  8. # 1) Behavioral data ----
  9. a1 <- read.csv('Behavior/behavior_data.csv')
  10. a2 <- read.csv('Behavior/choice_data.csv')
  11. r1 <- read.csv('Behavior/rating_data.csv')
  12. # 2) Neural signal data ----
  13. electrode <- c('FP1', 'FP2', 'F7', 'F3', 'FZ', 'F4', 'F8', 'FT7', 'FC3', 'FCZ',
  14. 'FC4', 'FT8', 'T7', 'C3', 'CZ', 'C4', 'T8', 'CP3', 'CPZ', 'CP4',
  15. 'P7', 'P3', 'PZ', 'P4', 'P8', 'O1', 'OZ', 'O2')
  16. # CueP3 [456 556] CPZ CP3 CP4 PZ P3 P4
  17. CueP3 = readMat('EEG/CueP3440600.mat' )
  18. CueP3 = CueP3$CueP3440600
  19. CueP3 = as.data.frame(CueP3)
  20. colnames(CueP3) <- electrode
  21. a1$CueP3 <- apply(cbind (CueP3$CP3, CueP3$CPZ, CueP3$CP4,CueP3$P3, CueP3$PZ, CueP3$P4),1, mean) # computes average activation in ROI
  22. # RewP [276 376] FCZ FC3 FC4
  23. RewP = readMat('EEG/RewP276376.mat')
  24. RewP = RewP$RewP276376
  25. RewP = as.data.frame(RewP)
  26. colnames(RewP)<- electrode
  27. a1$RewP <- apply(cbind ( RewP$FCz, RewP$FC3,RewP$FC4),1, mean) # computes average activation in ROI
  28. # feedback-P3 [324 424] PZ P3 P4
  29. fbP3 = readMat('EEG/fbP3324424.mat')
  30. fbP3 = fbP3$fbP3324424
  31. fbP3 = as.data.frame(fbP3)
  32. colnames(fbP3)<- electrode
  33. a1$fbP3 <- apply(cbind (fbP3$P3, fbP3$PZ, fbP3$P4),1, mean) # computes average activation in ROI
  34. # performP3 [250 450] PZ P3 P4
  35. PerformP3 = readMat('EEG/PerformP3250450.mat')
  36. PerformP3 = PerformP3$PerformP3250450
  37. PerformP3 = as.data.frame(PerformP3)
  38. colnames(PerformP3)<- electrode
  39. a1$PerformP3<- apply(cbind (PerformP3$Pz, PerformP3$P3, PerformP3$P4),1, mean)
  40. # ChoiceTheta [100 400] FCz
  41. theta = readMat('EEG/theta100400.mat')
  42. theta = theta$theta100400
  43. theta = as.data.frame(theta)
  44. frex = pracma::logspace(log10(1),log10(30),30) %>% round(digits = 4)
  45. colnames(theta) <- frex
  46. fidx <- c(which.min(abs(frex-4)), which.min(abs(frex-7)))
  47. a2$theta <- apply(theta[,fidx[1]:fidx[2]], 1, mean)
  48. # remove outliers
  49. for (i in levels(a1$Subject) )
  50. { print(i)
  51. a1[a1$Subject==i,]$CompleteRT <- outliers_mad(a1[a1$Subject==i,]$CompleteRT, 4)
  52. a1[a1$Subject==i,]$CueP3 <- outliers_mad(a1[a1$Subject==i,]$CueP3, 4)
  53. a1[a1$Subject==i,]$PerformP3 <- outliers_mad(a1[a1$Subject==i,]$PerformP3, 4)
  54. a1[a1$Subject==i,]$RewP <- outliers_mad(a1[a1$Subject==i,]$RewP, 4)
  55. a1[a1$Subject==i,]$fbP3 <- outliers_mad(a1[a1$Subject==i,]$fbP3, 4)
  56. }
  57. # as factor & standardize of effort phase
  58. a1$Subject <- as.factor(a1$Subject)
  59. a1 <- a1 %>% mutate(group = ifelse(group == 1,"CNT","ANH") )
  60. a1$group<-factor(a1$group, levels = c("CNT","ANH"))
  61. contrasts(a1$group) <- contr.sdif(2)
  62. a1<-a1%>%mutate(Complete=ifelse(Complete==0,0,1))
  63. a1<-a1%>%mutate(zEffort=scale(Effort, scale=TRUE, center=TRUE) )
  64. a1$zEffort <- as.vector(a1$zEffort)
  65. a1<-a1%>%mutate(zMagnitude=scale(Magnitude, scale=TRUE, center=TRUE) )
  66. a1$zMagnitude <- as.vector(a1$zMagnitude)
  67. a1 <- a1 %>% mutate(valence = ifelse(RewardType==0.0 ,"Loss", "Gain") )
  68. a1$valence<-factor(a1$valence, levels = c("Loss","Gain"))
  69. contrasts(a1$valence) <- contr.sdif(2)
  70. # remove outliers of choice phase
  71. a2 <- a2 %>% mutate( theta= ifelse(Subject==102,NaN, theta) ) # delete neural data of subject 102
  72. for (i in levels(a2$Subject) )
  73. { print(i)
  74. a2[a2$Subject==i,]$ChoiceRT <- outliers_mad(a2[a2$Subject==i,]$ChoiceRT, 4)
  75. a2[a2$Subject==i,]$theta <- outliers_mad(a2[a2$Subject==i,]$theta, 4)
  76. }
  77. # as factor & standardize of choice phase
  78. a2$Subject <- as.factor(a2$Subject)
  79. a2 <- a2 %>% mutate(group = ifelse(group == 1,"CNT","ANH") )
  80. a2$group<-factor(a2$group, levels = c("CNT","ANH"))
  81. contrasts(a2$group) <- contr.sdif(2)
  82. a2 <- a2 %>% mutate(Choice = ifelse(Choice==2,NaN, Choice))
  83. a2<-a2%>%mutate(Choice=ifelse(Choice==3,0,1))
  84. # a2$Choice <- as.factor(a2$Choice)
  85. # contrasts(a2$Choice) <- contr.sdif(2)
  86. a2<-a2%>%mutate(zEffort=scale(Effort, scale=TRUE, center=TRUE) );
  87. a2$zEffort <- as.vector(a2$zEffort)
  88. a2<-a2%>%mutate(zMagnitude=scale(Magnitude, scale=TRUE, center=TRUE) );
  89. a2$zMagnitude <- as.vector(a2$zMagnitude)
  90. for (i in levels(a2$Subject) )
  91. { print(i)
  92. a2$ztheta[a2$Subject==i] <- scale(a2$theta[a2$Subject==i], scale= TRUE, center=TRUE )
  93. # a2$zRT[a2$Subject==i] <- scale(a2$ChoiceRT[a2$Subject==i], scale= TRUE, center=TRUE )
  94. }
  95. # change the Rating data into longer format
  96. r2<-pivot_longer(data = r1,
  97. cols = c(Liking_Effort1, Liking_Effort2, Liking_Effort3, Liking_Effort4,Liking_Effort5),
  98. names_to = c("EffortLevel"), values_to = "Liking",
  99. names_pattern = "(1|2|3|4|5)") %>% dplyr::select(SubID,group,Liking)
  100. r3<-pivot_longer(data = r1,
  101. cols = c(Tired_Effort1, Tired_Effort2, Tired_Effort3, Tired_Effort4,Tired_Effort5 ),
  102. names_to = c("EffortLevel"), values_to = "Tired",
  103. names_pattern = "(1|2|3|4|5)") %>% dplyr::select(Tired)
  104. r4<-pivot_longer(data = r1,
  105. cols = c(PhyRequire_Effort1, PhyRequire_Effort2, PhyRequire_Effort3, PhyRequire_Effort4,PhyRequire_Effort5),
  106. names_to = c("EffortLevel"), values_to = "PhyRequire",
  107. names_pattern = "(1|2|3|4|5)") %>% dplyr::select(PhyRequire)
  108. r5<-pivot_longer(data = r1,
  109. cols = c(TimeStress_Effort1, TimeStress_Effort2, TimeStress_Effort3, TimeStress_Effort4,TimeStress_Effort5 ),
  110. names_to = c("EffortLevel"), values_to = "TimeStress",
  111. names_pattern = "(1|2|3|4|5)") %>% dplyr::select(TimeStress)
  112. r6<-pivot_longer(data = r1,
  113. cols = c(Perform_Effort1, Perform_Effort2, Perform_Effort3, Perform_Effort4,Perform_Effort5 ),
  114. names_to = c("EffortLevel"), values_to = "Perform",
  115. names_pattern = "(1|2|3|4|5)") %>% dplyr::select(Perform)
  116. r7<- cbind(r2,r3,r4,r5,r6)%>%mutate(EffortLevel = (rep(c(1,2,3,4,5),times = length(r1$SubID))))
  117. r8<-pivot_longer(data = r7,
  118. cols = c(Liking,Tired,PhyRequire,TimeStress,Perform),
  119. names_to = c("Items"), values_to = "Rating",
  120. names_pattern = "(Liking|Tired|PhyRequire|TimeStress|Perform)") %>% dplyr::select(-Items)%>%
  121. mutate(Items = (rep(c("Liking","Tired","PhyRequire","TimeStress","Perform"),times = length(r1$SubID)*5)))
  122. # as factor & standardize of rating data
  123. r8$SubID <- as.factor(r8$SubID)
  124. r8$group<-factor(r8$group, levels = c("CNT","ANH"))
  125. contrasts(r8$group) <- contr.sdif(2)
  126. r8<-r8%>%mutate(zEffort=scale(as.numeric(EffortLevel), scale=TRUE, center=TRUE) )
  127. r8$zEffort <- as.vector(r8$zEffort)
  128. ### Analyses: ----
  129. # 3.1 Results of rating data ----
  130. print (summary(mod_liking <- lmer(Rating ~ group*zEffort+(1| SubID) ,data= r8[r8$Items=="Liking",])))
  131. # Fixed effects:
  132. # Estimate Std. Error df t value Pr(>|t|)
  133. # (Intercept) 6.98250 0.13913 78.00000 50.186 <2e-16 ***
  134. # group2-1 -0.49500 0.27827 78.00000 -1.779 0.0792 .
  135. # zEffort -1.26604 0.06758 318.00000 -18.735 <2e-16 ***
  136. # group2-1:zEffort -0.36071 0.13515 318.00000 -2.669 0.0080 **
  137. print (summary(mod_effort <- lmer(Rating ~ group*zEffort+(1| SubID),data= r8[r8$Items=="PhyRequire",])))
  138. # Fixed effects:
  139. # Estimate Std. Error df t value Pr(>|t|)
  140. # (Intercept) 3.56250 0.11651 78.00000 30.576 <2e-16 ***
  141. # group2-1 0.09500 0.23302 78.00000 0.408 0.685
  142. # zEffort 2.09356 0.06241 318.00000 33.546 <2e-16 ***
  143. # group2-1:zEffort -0.07073 0.12482 318.00000 -0.567 0.571
  144. print (summary(mod_Tired <- lmer(Rating ~ group*zEffort+(1| SubID),data= r8[r8$Items=="Tired",])))
  145. # Fixed effects:
  146. # Estimate Std. Error df t value Pr(>|t|)
  147. # (Intercept) 3.62500 0.12297 78.00000 29.479 <2e-16 ***
  148. # group2-1 0.14000 0.24594 78.00000 0.569 0.571
  149. # zEffort 2.07588 0.06315 318.00000 32.874 <2e-16 ***
  150. # group2-1:zEffort -0.20511 0.12629 318.00000 -1.624 0.105
  151. print (summary(mod_TimeStress <- lmer(Rating ~ group*zEffort+(1| SubID),data= r8[r8$Items=="TimeStress",])))
  152. # Fixed effects:
  153. # Estimate Std. Error df t value Pr(>|t|)
  154. # (Intercept) 3.53500 0.12518 78.00000 28.240 <2e-16 ***
  155. # group2-1 0.28000 0.25035 78.00000 1.118 0.267
  156. # zEffort 2.04759 0.06376 318.00001 32.116 <2e-16 ***
  157. # group2-1:zEffort 0.13438 0.12751 318.00001 1.054 0.293
  158. print (summary(mod_Perform <- lmer(Rating ~ group*zEffort+(1| SubID),data= r8[r8$Items=="Perform",])))
  159. # Fixed effects:
  160. # Estimate Std. Error df t value Pr(>|t|)
  161. # (Intercept) 7.30500 0.13823 78.00000 52.847 <2e-16 ***
  162. # group2-1 -0.65000 0.27646 78.00000 -2.351 0.0212 *
  163. # zEffort -1.14934 0.06556 318.00000 -17.531 <2e-16 ***
  164. # group2-1:zEffort -0.13438 0.13112 318.00000 -1.025 0.3062
  165. tab_model(mod_liking,mod_effort,mod_Perform,mod_Tired,mod_TimeStress)
  166. # 3.2 Results of the effort-reward task
  167. # 3.2.1 Behavioral data ----
  168. # a) success rate
  169. print (summary(mod_complete <- glmer(data=a1, Complete~ group*zEffort*zMagnitude+(zEffort|Subject),family=binomial,control=glmerControl("bobyqa"))))
  170. # Fixed effects:
  171. # Estimate Std. Error z value Pr(>|z|)
  172. # (Intercept) 10.4117 1.2720 8.185 2.72e-16 ***
  173. # group2-1 -2.0493 1.5001 -1.366 0.172
  174. # zEffort -5.7306 0.9085 -6.308 2.83e-10 ***
  175. # zMagnitude -0.8350 0.5531 -1.510 0.131
  176. # group2-1:zEffort 1.3533 1.0770 1.257 0.209
  177. # group2-1:zMagnitude 0.2713 1.0985 0.247 0.805
  178. # zEffort:zMagnitude 0.5880 0.3963 1.484 0.138
  179. # group2-1:zEffort:zMagnitude -0.2196 0.7869 -0.279 0.780
  180. tab_model(mod_complete, transform = NULL)
  181. # b) completion RT
  182. print (summary(mod_CompleteRT <- lmer(CompleteRT~ group*zEffort*zMagnitude+(zEffort|Subject), data=a1, REML=FALSE, control=lmerControl("bobyqa"))))
  183. # Fixed effects:
  184. # Estimate Std. Error df t value Pr(>|t|)
  185. # (Intercept) 3.213e+00 2.481e-02 7.900e+01 129.510 < 2e-16 ***
  186. # group2-1 3.624e-02 4.962e-02 7.900e+01 0.730 0.46726
  187. # zEffort 1.621e+00 1.144e-02 7.900e+01 141.730 < 2e-16 ***
  188. # zMagnitude -9.360e-03 3.348e-03 1.169e+04 -2.796 0.00519 **
  189. # group2-1:zEffort 3.877e-02 2.288e-02 7.900e+01 1.695 0.09406 .
  190. # group2-1:zMagnitude -5.907e-03 6.696e-03 1.169e+04 -0.882 0.37770
  191. # zEffort:zMagnitude -7.221e-03 3.348e-03 1.169e+04 -2.157 0.03105 *
  192. # group2-1:zEffort:zMagnitude -4.386e-03 6.697e-03 1.169e+04 -0.655 0.51251
  193. tab_model(mod_CompleteRT)
  194. mylist <- list(zEffort=c(1,-1))
  195. emtrends(mod_CompleteRT, pairwise~zEffort, var="zMagnitude",at=mylist,pbkrtest.limit = 11850) %>% summary(infer = c(TRUE,TRUE))
  196. # $emtrends
  197. # zEffort zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
  198. # 1 -0.01658 0.00474 11696 -0.0259 -0.00730 -3.501 0.0005
  199. # -1 -0.00214 0.00474 11696 -0.0114 0.00714 -0.452 0.6515
  200. # 3.2.2 Neural signal data ----
  201. # a) Cue-P3
  202. print (summary(mod_cueP3 <- lmer(CueP3~ group*zEffort*zMagnitude+(zEffort|Subject),data = a1,REML=FALSE, control=lmerControl("bobyqa"))))
  203. # Fixed effects:
  204. # Estimate Std. Error df t value Pr(>|t|)
  205. # (Intercept) 4.983e+00 3.148e-01 7.991e+01 15.826 <2e-16 ***
  206. # group2-1 -7.539e-01 6.297e-01 7.991e+01 -1.197 0.2347
  207. # zEffort 1.196e+00 1.095e-01 7.974e+01 10.923 <2e-16 ***
  208. # zMagnitude 1.326e-01 7.528e-02 1.148e+04 1.762 0.0781 .
  209. # group2-1:zEffort -3.312e-01 2.191e-01 7.974e+01 -1.512 0.1345
  210. # group2-1:zMagnitude -3.143e-01 1.506e-01 1.148e+04 -2.088 0.0368 *
  211. # zEffort:zMagnitude 1.157e-01 7.529e-02 1.148e+04 1.536 0.1245
  212. # group2-1:zEffort:zMagnitude -2.900e-02 1.506e-01 1.148e+04 -0.193 0.8473
  213. tab_model(mod_cueP3)
  214. emtrends(mod_cueP3, pairwise~group, var="zMagnitude", infer=T,pbkrtest.limit = 11635)
  215. # $emtrends
  216. # group zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
  217. # CNT 0.2898 0.107 11483 0.0807 0.499 2.717 0.0066
  218. # ANH -0.0245 0.106 11481 -0.2329 0.184 -0.231 0.8175
  219. # b) RewP
  220. print (summary(mod_RewP <- lmer(RewP~ group*zEffort*zMagnitude*valence+(zEffort+zMagnitude+valence|Subject),data = a1,REML=FALSE, control=lmerControl("bobyqa"))))
  221. # Fixed effects:
  222. # Estimate Std. Error df t value Pr(>|t|)
  223. # (Intercept) 3.430e+00 3.514e-01 7.972e+01 9.760 2.94e-15 ***
  224. # group2-1 1.573e+00 7.028e-01 7.972e+01 2.239 0.02795 *
  225. # zEffort -3.711e-02 1.281e-01 7.933e+01 -0.290 0.77284
  226. # zMagnitude 5.384e-01 1.016e-01 7.913e+01 5.297 1.03e-06 ***
  227. # valence2-1 1.259e+00 2.074e-01 7.890e+01 6.073 4.16e-08 ***
  228. # group2-1:zEffort 3.077e-01 2.563e-01 7.933e+01 1.201 0.23341
  229. # group2-1:zMagnitude 3.242e-01 2.033e-01 7.913e+01 1.595 0.11473
  230. # zEffort:zMagnitude -2.387e-01 8.570e-02 1.127e+04 -2.786 0.00535 **
  231. # group2-1:valence2-1 -8.461e-01 4.148e-01 7.890e+01 -2.040 0.04471 *
  232. # zEffort:valence2-1 -1.115e-01 1.713e-01 1.126e+04 -0.651 0.51505
  233. # zMagnitude:valence2-1 4.207e-01 1.708e-01 1.125e+04 2.463 0.01377 *
  234. # group2-1:zEffort:zMagnitude 2.246e-01 1.714e-01 1.127e+04 1.311 0.19004
  235. # group2-1:zEffort:valence2-1 1.847e-01 3.427e-01 1.126e+04 0.539 0.58996
  236. # group2-1:zMagnitude:valence2-1 -5.454e-03 3.416e-01 1.125e+04 -0.016 0.98726
  237. # zEffort:zMagnitude:valence2-1 9.489e-02 1.714e-01 1.125e+04 0.554 0.57982
  238. # group2-1:zEffort:zMagnitude:valence2-1 3.700e-02 3.428e-01 1.125e+04 0.108 0.91404
  239. tab_model(mod_RewP)
  240. emtrends(mod_RewP, ~valence, var="zMagnitude",at=mylist,infer=T,pbkrtest.limit = 11557)
  241. # valence zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
  242. # Loss 0.328 0.134 238 0.0645 0.592 2.452 0.0149
  243. # Gain 0.749 0.134 238 0.4852 1.012 5.597 <.0001
  244. mylist <- list(zEffort=c(1,-1))
  245. emtrends(mod_RewP, ~zEffort, var="zMagnitude",at=mylist,pbkrtest.limit = 11557) %>% summary(infer = c(TRUE,TRUE))
  246. # zEffort zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
  247. # 1 0.300 0.135 244 0.0342 0.565 2.224 0.0271
  248. # -1 0.777 0.133 234 0.5147 1.040 5.834 <.0001
  249. emmeans(mod_RewP,pairwise~valence|group,infer=T,pbkrtest.limit = 11557)
  250. # $contrasts
  251. # group = CNT:
  252. # contrast estimate SE df lower.CL upper.CL t.ratio p.value
  253. # Loss - Gain -1.683 0.297 82.2 -2.27 -1.092 -5.662 <.0001
  254. #
  255. # group = ANH:
  256. # contrast estimate SE df lower.CL upper.CL t.ratio p.value
  257. # Loss - Gain -0.834 0.297 81.8 -1.43 -0.244 -2.811 0.0062
  258. # c) Feedback-P3
  259. print (summary(mod_fbP3 <- lmer(fbP3~ group*zEffort*zMagnitude*valence+(zMagnitude+valence|Subject),data = a1,REML=FALSE, control=lmerControl("bobyqa"))))
  260. # Fixed effects:
  261. # Estimate Std. Error df t value Pr(>|t|)
  262. # (Intercept) 5.317e+00 4.498e-01 7.990e+01 11.819 < 2e-16 ***
  263. # group2-1 1.623e+00 8.997e-01 7.990e+01 1.804 0.0750 .
  264. # zEffort 4.069e-02 8.250e-02 1.133e+04 0.493 0.6218
  265. # zMagnitude 5.189e-01 1.010e-01 7.921e+01 5.139 1.94e-06 ***
  266. # valence2-1 1.286e+00 2.145e-01 7.938e+01 5.995 5.70e-08 ***
  267. # group2-1:zEffort 2.241e-01 1.650e-01 1.133e+04 1.358 0.1744
  268. # group2-1:zMagnitude 1.447e-01 2.020e-01 7.921e+01 0.717 0.4757
  269. # zEffort:zMagnitude -1.884e-01 8.251e-02 1.134e+04 -2.283 0.0225 *
  270. # group2-1:valence2-1 -6.521e-01 4.291e-01 7.938e+01 -1.520 0.1325
  271. # zEffort:valence2-1 -2.472e-01 1.650e-01 1.133e+04 -1.498 0.1341
  272. # zMagnitude:valence2-1 7.090e-01 1.644e-01 1.133e+04 4.312 1.63e-05 ***
  273. # group2-1:zEffort:zMagnitude -1.080e-01 1.650e-01 1.134e+04 -0.655 0.5127
  274. # group2-1:zEffort:valence2-1 7.048e-01 3.299e-01 1.133e+04 2.136 0.0327 *
  275. # group2-1:zMagnitude:valence2-1 5.231e-02 3.289e-01 1.133e+04 0.159 0.8736
  276. # zEffort:zMagnitude:valence2-1 4.165e-01 1.650e-01 1.133e+04 2.525 0.0116 *
  277. # group2-1:zEffort:zMagnitude:valence2-1 2.822e-02 3.300e-01 1.133e+04 0.086 0.9319
  278. tab_model(mod_fbP3)
  279. mylist <- list(zEffort=c(1,-1),group=c("CNT","ANH"))
  280. emtrends(mod_fbP3, ~zEffort|valence, var="zMagnitude",at=mylist,pbkrtest.limit = 11557) %>% summary(infer = c(TRUE,TRUE))
  281. # valence = Loss:
  282. # zEffort zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
  283. # 1 -0.232 0.176 726 -0.579 0.114 -1.316 0.1886
  284. # -1 0.561 0.174 698 0.218 0.904 3.216 0.0014
  285. #
  286. # valence = Gain:
  287. # zEffort zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
  288. # 1 0.893 0.177 735 0.546 1.241 5.048 <.0001
  289. # -1 0.854 0.175 701 0.511 1.196 4.886 <.0001
  290. emtrends(mod_fbP3, ~group|valence, var="zEffort",pbkrtest.limit = 11557) %>% summary(infer = c(TRUE,TRUE))
  291. # valence = Loss:
  292. # group zEffort.trend SE df lower.CL upper.CL t.ratio p.value
  293. # CNT 0.230 0.165 11338 -0.0932 0.5535 1.395 0.1630
  294. # ANH 0.102 0.164 11345 -0.2196 0.4245 0.624 0.5329
  295. #
  296. # valence = Gain:
  297. # group zEffort.trend SE df lower.CL upper.CL t.ratio p.value
  298. # CNT -0.371 0.165 11338 -0.6954 -0.0475 -2.248 0.0246
  299. # ANH 0.206 0.166 11343 -0.1192 0.5302 1.241 0.2148
  300. # d) Performance-P3
  301. print (summary(mod_PerformP3 <- lmer(PerformP3~ group*zEffort*zMagnitude+(zEffort|Subject),data = a1,REML=FALSE, control=lmerControl("bobyqa"))))
  302. # Fixed effects:
  303. # Estimate Std. Error df t value Pr(>|t|)
  304. # (Intercept) 1.848e+00 2.556e-01 7.967e+01 7.229 2.62e-10 ***
  305. # group2-1 3.235e-02 5.112e-01 7.967e+01 0.063 0.950
  306. # zEffort 4.853e-01 1.173e-01 7.910e+01 4.137 8.70e-05 ***
  307. # zMagnitude 2.855e-02 7.177e-02 1.121e+04 0.398 0.691
  308. # group2-1:zEffort 7.277e-02 2.346e-01 7.910e+01 0.310 0.757
  309. # group2-1:zMagnitude 3.776e-02 1.435e-01 1.121e+04 0.263 0.792
  310. # zEffort:zMagnitude -8.869e-02 7.201e-02 1.122e+04 -1.232 0.218
  311. # group2-1:zEffort:zMagnitude 1.184e-01 1.440e-01 1.122e+04 0.822 0.411
  312. tab_model(mod_PerformP3)
  313. # 3.3 Results of the effort-based decision-making task
  314. # 3.3.1 Behavioral data ----
  315. # a) choice rate
  316. print (summary(mod_choice <- glmer(data=a2, Choice~ group*zEffort*zMagnitude+(zEffort+zMagnitude|Subject),family=binomial,control=glmerControl("bobyqa"))))
  317. # Fixed effects:
  318. # Estimate Std. Error z value Pr(>|z|)
  319. # (Intercept) 7.04504 0.66087 10.660 <2e-16 ***
  320. # group2-1 0.01721 1.09119 0.016 0.9874
  321. # zEffort -2.26011 0.23915 -9.451 <2e-16 ***
  322. # zMagnitude 3.86089 0.38644 9.991 <2e-16 ***
  323. # group2-1:zEffort 0.75108 0.40631 1.849 0.0645 .
  324. # group2-1:zMagnitude -0.40774 0.60951 -0.669 0.5035
  325. # zEffort:zMagnitude 0.05601 0.09038 0.620 0.5354
  326. # group2-1:zEffort:zMagnitude -0.11238 0.17478 -0.643 0.5202
  327. tab_model(mod_choice, transform = NULL)
  328. emtrends(mod_choice, ~group, var="zEffort", infer=T,pbkrtest.limit = 11635) %>% summary(infer = c(TRUE,TRUE))
  329. # group zEffort.trend SE df asymp.LCL asymp.UCL z.ratio p.value
  330. # CNT -2.64 0.318 Inf -3.26 -2.01 -8.277 <.0001
  331. # ANH -1.88 0.309 Inf -2.49 -1.28 -6.097 <.0001
  332. # d) decision RT
  333. print (summary(mod_choiceRT <- lmer(ChoiceRT~ group*zEffort*zMagnitude+(1+zEffort|Subject), data=a2, REML=FALSE, control=lmerControl("bobyqa"))))
  334. # Fixed effects:
  335. # Estimate Std. Error df t value Pr(>|t|)
  336. # (Intercept) 587.259 23.119 80.000 25.402 < 2e-16 ***
  337. # group2-1 -50.795 46.238 80.000 -1.099 0.275
  338. # zEffort 25.146 5.149 80.000 4.884 5.24e-06 ***
  339. # zMagnitude -3.812 4.234 7840.000 -0.900 0.368
  340. # group2-1:zEffort -9.285 10.298 80.000 -0.902 0.370
  341. # group2-1:zMagnitude -10.266 8.468 7840.000 -1.212 0.225
  342. # zEffort:zMagnitude -3.361 4.234 7840.000 -0.794 0.427
  343. # group2-1:zEffort:zMagnitude 12.979 8.469 7840.000 1.532 0.125
  344. tab_model(mod_choiceRT)
  345. # 3.3.2 Neural signal data ----
  346. # a) choice-theta
  347. print (summary(mod_Theta <- lmer(theta~ group*zEffort*zMagnitude+(zEffort |Subject),data = a2,REML=FALSE, control=lmerControl("bobyqa"))))
  348. # Fixed effects:
  349. # Estimate Std. Error df t value Pr(>|t|)
  350. # (Intercept) 4.633e-01 3.906e-02 7.905e+01 11.861 < 2e-16 ***
  351. # group2-1 -4.337e-02 7.812e-02 7.905e+01 -0.555 0.580340
  352. # zEffort -7.641e-03 1.402e-02 7.890e+01 -0.545 0.587195
  353. # zMagnitude -3.901e-02 1.105e-02 7.496e+03 -3.529 0.000419 ***
  354. # group2-1:zEffort 1.390e-02 2.803e-02 7.890e+01 0.496 0.621310
  355. # group2-1:zMagnitude 4.849e-02 2.211e-02 7.496e+03 2.193 0.028310 *
  356. # zEffort:zMagnitude -7.976e-03 1.106e-02 7.499e+03 -0.721 0.470785
  357. # group2-1:zEffort:zMagnitude 5.583e-02 2.212e-02 7.499e+03 2.524 0.011614 *
  358. tab_model(mod_Theta)
  359. mylist <- list(zEffort=c(1,-1),group=c("CNT","ANH"))
  360. emtrends(mod_Theta, ~zEffort | group, var="zMagnitude",at=mylist,pbkrtest.limit = 7651) %>% summary(infer = c(TRUE,TRUE))
  361. # group = CNT:
  362. # zEffort zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
  363. # 1 -0.09915 0.0223 7504 -0.1428 -0.05548 -4.450 <.0001
  364. # -1 -0.02737 0.0222 7501 -0.0710 0.01623 -1.231 0.2185
  365. #
  366. # group = ANH:
  367. # zEffort zMagnitude.trend SE df lower.CL upper.CL t.ratio p.value
  368. # 1 0.00517 0.0219 7501 -0.0378 0.04816 0.236 0.8136
  369. # -1 -0.03470 0.0220 7501 -0.0779 0.00847 -1.576 0.1151
  370. # b) Could theta predict participants' effort choices
  371. print (summary(mod_choice_theta <- glmer(data=a2, Choice~ group*ztheta+(1|Subject),family=binomial,control=glmerControl("bobyqa"))))
  372. # Fixed effects:
  373. # Estimate Std. Error z value Pr(>|z|)
  374. # (Intercept) 2.36822 0.16520 14.336 <2e-16 ***
  375. # group2-1 0.43769 0.32484 1.347 0.1778
  376. # ztheta -0.03028 0.03507 -0.864 0.3878
  377. # group2-1:ztheta 0.19158 0.07014 2.732 0.0063 **
  378. tab_model(mod_choice_theta, transform = NULL)
  379. emtrends(mod_choice_theta, ~ group, var="ztheta",at=mylist) %>% summary(infer = c(TRUE,TRUE))
  380. # group ztheta.trend SE df asymp.LCL asymp.UCL z.ratio p.value
  381. # CNT -0.1261 0.0455 Inf -0.215 -0.0368 -2.769 0.0056
  382. # ANH 0.0655 0.0533 Inf -0.039 0.1701 1.228 0.2195

Analysis_code.R, no license · at the source

Overview

Authors: Zhao Wang1, Shiyu Zhou1, Bo Gao1, Haohan Sang1, Ya Zheng2
  1. Department of Mental Health and Psychology, Dalian Medical University, Dalian, China
  2. Department of Psychology, Guangzhou University, Guangzhou, China
Institutions: Dalian Medical University (China); Guangzhou University (China)
Journal: Psychological medicine, volume 56, article e62
Dates: received 25 July 2025; accepted 30 December 2025; published online 3 March 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1017/s0033291726103249 · PMID 41773068 · PMCID PMC12969199 · OpenAlex W7133350916
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), human (organism), cognitive (subfield)
Methods: Machine learning, Preprocessing, Evoked potentials, Statistics
Keywords: anhedonia, effort, motivation, neural dynamics, reward
MeSH: Anhedonia*, Cues*, Decision Making*, Evoked Potentials*, Reward*, Adolescent, Adult, Case-Control Studies, Electroencephalography, Female, Humans, Male, Motivation, Young Adult (* major topic)
Topic: Neural and Behavioral Psychology Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: 2024 Tertiary Education Scientific Research Project of Guangzhou Municipal Education Bureau (2024312195); National Natural Science Foundation of China (National Science Foundation of China) (32571255)
Citations: not cited yet (Europe PMC); 55 references in the paper

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

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Languages: R (1)
Size: 10 files, 1 script
Software Heritage: not checked
Found in: “Data availability statement”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: emmeans (1 file), ggplot2 (1 file), lme4 (1 file), lmerTest (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
  • 30 September 2026: the link answers (HTTP 200)
2 files

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://osf.io/6wzk5/?view_only=d33469d402734b6f89d638f115dd6405.

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://doi.org/10.1017/s0033291726103249

BibTeX

@article{wang2026inefficient,
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/s0033291726103249},
url = {https://doi.org/10.1017/s0033291726103249},
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/03/03
VL - 56
SP - e62
SN - 0033-2917
PB - Cambridge University Press
DO - 10.1017/s0033291726103249
UR - https://doi.org/10.1017/s0033291726103249
LA - en
ER -

CSL-JSON

{
"id": "10.1017/s0033291726103249",
"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": "Psychol Med",
"volume": "56",
"page": "e62",
"DOI": "10.1017/s0033291726103249",
"PMID": "41773068",
"PMCID": "PMC12969199",
"ISSN": "0033-2917",
"publisher": "Cambridge University Press",
"URL": "https://doi.org/10.1017/s0033291726103249",
"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: eLife
In 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 neuroscience
In 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: NeuroImage
In 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 biology
In 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: Psychophysiology
In 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 reports
In 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 one
In 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: Psychophysiology
In 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 one
In 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 communications
In 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.

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: 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.