Dissecting the interplay of model-based control, impulsivity and compulsivity on self-control in daily life.
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] § Methods › Regression model ↔ Data and code/SelfControl_2tasks_MLM_OSF.R, lines 218 to 266 · score 0.56 · random intercepts, random slopes, variables, fit, EEG, conflict strength · block
oscr:b:4WP67B4GFYKEM-V· 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 · 495 lines · 20 KB · no license · 1 match
- ################################################################################################################################################
- setwd('your directory')
- #### Load packages####
- # load required packages
- if(!require(readxl)){
- install.packages("readxl") # v 1.4.4
- library(readxl)
- }
- # load required packages
- if(!require(car)){
- install.packages("car") # v 3.1-3
- library(car)
- }
- # load required packages
- if(!require(tidyr)){
- install.packages("tidyr") # v 1.1.3
- library(tidyr)
- }
- # load required packages
- if(!require(dplyr)){
- install.packages("dplyr") # v 1.1.4
- library(dplyr)
- }
- # load required packages
- if(!require(psych)){
- install.packages("psych") # v 2.4.12
- library(psych)
- }
- # load required packages
- if(!require(stats)){
- install.packages("stats") # v 4.4.3
- library(stats)
- }
- # load required packages
- if(!require(DHARMa)){
- install.packages("DHARMa") # v 0.4.7
- library(DHARMa)
- }
- # load required packages
- if(!require(lme4)){
- install.packages("lme4") # v 1.1-36
- library(lme4)
- }
- # load required packages
- if(!require(emmeans)){
- install.packages("emmeans") # v 1.10.7
- library(emmeans)
- }
- # load required packages
- if(!require(sjPlot)){
- install.packages("sjPlot") # v 2.8.17
- library(sjPlot)
- }
- # load required packages
- if(!require(report)){
- install.packages("report") # v 0.6.1
- library(report)
- }
- # load required packages
- if(!require(interactions)){
- install.packages("interactions") # v 1.2.0
- library(interactions)
- }
- # load required packages
- if(!require(ggplot2)){
- install.packages("ggplot2") # v 3.5.1
- library(ggplot2)
- }
- #### Read Dataset ####
- SC_data_indiv <- openxlsx::read.xlsx("SC_2tasks_indiv.xlsx")
- SC_data_indiv <- dplyr::rename(SC_data_indiv, TotalMiss = Miss , TotalDes = Des , TotalCon = Con ,
- TotalConEnact = ConEnact , TotalResEnact = ResEnact ,
- MeanConStrength = ConStrength , MeanDesStrength = DesStrength,
- MeanDesStrengthEnact = DesStrengthEnact)
- names <- SC_data_indiv$name
- SC_data_indiv$namesNew <- factor(x = SC_data_indiv$name, levels = names)
- EMA_long <- read.csv("your directory\\EMA_longForm.csv")
- exclude <- setdiff(EMA_long$name, SC_data_indiv$name)
- EMA_long <- EMA_long[!EMA_long$name %in% exclude, ] #frame originally contains all participants
- AllData <- full_join(SC_data_indiv, EMA_long, by = c("name"))
- glmmData <- subset(AllData, select = c(1, 4, 7, 10, 13, 16, 21, 38, 39, 82, 86, 87, 89:93)) # only needed columns
- glmmData$resistance[glmmData$resistance == 0] <- -1
- # extract only conflicted situations
- glmmData_conflict <- (glmmData %>% filter(conflict==1))
- # scale all continuous predictors
- glmmData[,c(2:9 )]<-scale(glmmData[,c(2:9)],center=F,scale=T) #mean betas, BIS, OCI
- glmmData[,c(13, 15 )] <- scale(glmmData[,c(13, 15 )], center = F, scale = T) #conf and des strength
- glmmData_conflict[,c(2:9 )]<-scale(glmmData_conflict[,c(2:9)],center=F,scale=T) #mean betas, BIS, OCI
- glmmData_conflict[,c(13, 15 )] <- scale(glmmData_conflict[,c(13, 15 )], center = F, scale = T) #conf and des strength
- #### desriptives ####
- psych::describe(SC_data_indiv[, c(18:22, 30:32, 38:39, 52:81)])
- ##################################################################################
- # checking assumptions
- #
- # The assumptions of generalised linear mixed models are a combination of
- # the assumptions of GLMs and mixed models.
- #
- # The observed y are independent, conditional on some predictors x
- #
- # The response y come from a known distribution from the exponential family,
- # with a known mean variance relationship
- #
- # There is a straight line relationship between some known function (link) of the mean of y
- # and the predictors x and random effects z
- #
- # Random effects z are independent of y
- #
- # Random effects z are normally distributed
- ##################################################################################
- # Model Random Slope
- fit.bin <- glmer(enactment ~ 1 + desire_strength + conflict_strength + BIS + OCI +
- (1 + desire_strength + conflict_strength|name),
- family = binomial("logit"), data = glmmData,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=100000)))
- summary(fit.bin)
- # examine residual plots - plots difficult to interpret for binary data
- par(mfrow = c(1, 2))
- plot(residuals(fit.bin) ~ fitted(fit.bin), main = "residuals v.s. Fitted")
- qqnorm(residuals(fit.bin)) #seems ok
- #check dispersion
- # https://cran.r-project.org/web/packages/DHARMa/vignettes/DHARMa.html#general-remarks-on-interperting-residual-patterns-and-tests
- # https://github.com/florianhartig/DHARMa/issues/181
- # https://github.com/florianhartig/DHARMa/issues/396
- ss <- DHARMa::simulateResiduals(fit.bin, plot = T) #straight diagnonal --> looks ok
- testDispersion(ss) #n.s.
- simulationOutput = recalculateResiduals(ss , group = glmmData$name)
- testDispersion(simulationOutput) #n.s.
- plot(simulationOutput) #KS test distribution, dispersion and residual vs. predicted values ok, but outlier test significant
- # check normality of RE
- r_int<- ranef(fit.bin)$name$`(Intercept)`
- shapiro.test(r_int) # p <.001
- qqPlot(r_int)
- r_conf<- ranef(fit.bin)$name$conflict_strength
- shapiro.test(r_conf) # p .63
- qqPlot(r_conf)
- r_des<- ranef(fit.bin)$name$desire_strength
- shapiro.test(r_des) # p .044
- qqPlot(r_des)
- ##################################################################################
- # Level 1 predictors will be desire and conflict strength (Krönke et al., 2020),
- # level 2 predictors will be impulsivity and compulsivity
- # enactment ~ desire strength * conflict strength * impulsivity * compulsivity + (desire strength * conflict strength | participant)
- ##################################################################################
- ##################################################################################
- # models for different situations
- ##################################################################################
- ## all situations
- # fit null model
- fit0a <- glm(enactment ~ 1, family = binomial("logit"), data = glmmData)
- summary(fit0a)
- # fit baseline model (2 levels)
- fit0b <- glmer(enactment ~ (1|name), family = binomial("logit"), data = glmmData)
- summary(fit0b)
- # see if random effects warranted - if significant then yes
- null.id = -2 * logLik(fit0a) + 2 * logLik(fit0b)
- pchisq(as.numeric(null.id), df=1, lower.tail=F) #yes: p 8.7e-238
- ## conflict situations
- # fit null model
- fit0a <- glm(enactment ~ 1, family = binomial("logit"), data = glmmData_conflict)
- summary(fit0a)
- # fit baseline model (2 levels)
- fit0b <- glmer(enactment ~ (1|name), family = binomial("logit"), data = glmmData_conflict)
- summary(fit0b)
- # see if random effects warranted - if significant then yes
- null.id = -2 * logLik(fit0a) + 2 * logLik(fit0b)
- pchisq(as.numeric(null.id), df=1, lower.tail=F) #yes: p 4.3e-31
- # examine estimates of the community effects or residuals
- u0 <- ranef(fit0b, condVar = TRUE)
- u0se <- sqrt(attr(u0[[1]], "postVar")[1, , ])
- commid <- as.numeric((str_sub(rownames(u0[[1]]), start = -4)))
- u0tab <- cbind("commid" = commid, "u0" = u0[[1]], "u0se" = u0se)
- colnames(u0tab)[2] <- "u0"
- u0tab <- u0tab[order(u0tab$u0), ]
- u0tab <- cbind(u0tab, c(1:dim(u0tab)[1]))
- u0tab <- u0tab[order(u0tab$commid), ]
- colnames(u0tab)[4] <- "u0rank"
- # The plot shows the estimated residuals for all 236 participants in the sample. For a
- # substantial number of participants, the 95% confidence interval does not overlap
- # the horizontal line at zero, indicating that enactment of desires in these
- # participants is significantly above average (above the zero line) or below average
- # (below the zero line)
- plot(u0tab$u0rank, u0tab$u0, type = "n", xlab = "u_rank",
- ylab = "conditional modes of r.e. for comm_id:_cons", ylim = c(-4, 4))
- segments(u0tab$u0rank, u0tab$u0 - 1.96*u0tab$u0se, u0tab$u0rank, u0tab$u0 + 1.96*u0tab$u0se)
- points(u0tab$u0rank, u0tab$u0, col = "blue")
- abline(h = 0, col = "red")
- # add explanatory variables
- ## all situations
- #random intercept
- fit0c <- glmer(enactment ~ desire_strength + conflict_strength + (1|name),
- family = binomial("logit"), data = glmmData)
- summary(fit0c)
- # random slopes
- fit0c1 <- glmer(enactment ~ desire_strength + conflict_strength + (1 + conflict_strength + desire_strength|name),
- family = binomial("logit"), data = glmmData)
- summary(fit0c1)
- # see if random slopes warranted - if significant then yes
- null.id = -2 * logLik(fit0c) + 2 * logLik(fit0c1)
- pchisq(as.numeric(null.id), df=1, lower.tail=F) #yes: p 2.04-99
- ## conflict situations
- #random intercept
- fit0d <- glmer(enactment ~ desire_strength + conflict_strength + (1|name),
- family = binomial("logit"), data = glmmData_conflict)
- summary(fit0d)
- # random slopes
- fit0d1 <- glmer(enactment ~ desire_strength + conflict_strength + (1 + conflict_strength + desire_strength|name),
- family = binomial("logit"), data = glmmData_conflict)
- summary(fit0d1)
- ###############################################################################################################
- ############ explore effect of EEG ###########################################################
- ###############################################################################################################
- ########## two step task
- # for all situations
- # add FRN and P3 (cor .14)
- fit4a0 <- glmer(enactment ~ desire_strength + conflict_strength +
- mean_beta_FRN + mean_beta_fbP3b +
- (1 + desire_strength + conflict_strength|name),
- family = binomial("logit"), data = glmmData,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=100000)))
- summary(fit4a0) #singular fit
- sjPlot::tab_model(fit4a0)
- report::report(fit4a0)
- # add BIS and OCI
- fit4a <- glmer(enactment ~ desire_strength + conflict_strength +
- mean_beta_FRN + mean_beta_fbP3b + BIS + OCI +
- (1 + desire_strength + conflict_strength|name),
- family = binomial("logit"), data = glmmData,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=100000)))
- summary(fit4a)
- sjPlot::tab_model(fit4a)
- report::report(fit4a)
- # add interactions with BIS and OCI
- fit4b <- glmer(enactment ~ desire_strength + conflict_strength +
- mean_beta_FRN + mean_beta_FRN:BIS + mean_beta_FRN:OCI + mean_beta_FRN:BIS:OCI +
- mean_beta_fbP3b + mean_beta_fbP3b:BIS + mean_beta_fbP3b:OCI + mean_beta_fbP3b:BIS:OCI +
- (1 + desire_strength + conflict_strength|name),
- family = binomial("logit"), data = glmmData,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=100000)))
- summary(fit4b)
- sjPlot::tab_model(fit4b)
- report::report(fit4b)
- #for conflicts
- # add FRN and P3
- fit4a02 <- glmer(enactment ~ desire_strength + conflict_strength +
- mean_beta_FRN + mean_beta_fbP3b +
- (1 + desire_strength + conflict_strength|name),
- family = binomial("logit"), data = glmmData_conflict,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=100000)))
- summary(fit4a02) #singular fit
- sjPlot::tab_model(fit4a02)
- report::report(fit4a02)
- # add BIS and OCI
- fit4a2 <- glmer(enactment ~ desire_strength + conflict_strength +
- mean_beta_FRN + mean_beta_fbP3b + BIS + OCI +
- (1 + desire_strength + conflict_strength|name),
- family = binomial("logit"), data = glmmData_conflict,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=100000)))
- summary(fit4a2)
- sjPlot::tab_model(fit4a2)
- report::report(fit4a2)
- # add interactions with BIS and OCI
- fit4b2 <- glmer(enactment ~ desire_strength + conflict_strength +
- mean_beta_FRN + mean_beta_FRN:BIS + mean_beta_FRN:OCI + mean_beta_FRN:BIS:OCI +
- mean_beta_fbP3b + mean_beta_fbP3b:BIS + mean_beta_fbP3b:OCI + mean_beta_fbP3b:BIS:OCI +
- (1 + desire_strength + conflict_strength|name),
- family = binomial("logit"), data = glmmData_conflict,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=100000)))
- summary(fit4b2)
- sjPlot::tab_model(fit4b2)
- report::report(fit4b2)
- ########## GONOGO task
- # for all situations
- # add N2 and P3 (cave: cor .65)
- fit5a0 <- glmer(enactment ~ desire_strength + conflict_strength +
- mean_beta_N2 + mean_beta_stimP3a +
- (1 + desire_strength + conflict_strength|name),
- family = binomial("logit"), data = glmmData,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=100000)))
- summary(fit5a0)
- sjPlot::tab_model(fit5a0)
- report::report(fit5a0)
- # add BIS and OCI
- fit5a <- glmer(enactment ~ desire_strength + conflict_strength +
- mean_beta_N2 + mean_beta_stimP3a + BIS + OCI +
- (1 + desire_strength + conflict_strength|name),
- family = binomial("logit"), data = glmmData,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=100000)))
- summary(fit5a)
- sjPlot::tab_model(fit5a)
- report::report(fit5a)
- # add interactions with BIS and OCI
- fit5b <- glmer(enactment ~ desire_strength + conflict_strength +
- mean_beta_N2 + mean_beta_N2:BIS + mean_beta_N2:OCI + mean_beta_N2:BIS:OCI +
- mean_beta_stimP3a + mean_beta_stimP3a:BIS + mean_beta_stimP3a:OCI + mean_beta_stimP3a:BIS:OCI +
- (1 + desire_strength + conflict_strength|name),
- family = binomial("logit"), data = glmmData,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=100000)))
- summary(fit5b)
- sjPlot::tab_model(fit5b)
- report::report(fit5b)
- ########### investigate interactions
- # Calculate mean and SD of the moderators (predictor2 and predictor3)
- mean_pred2 <- mean(glmmData$BIS)
- sd_pred2 <- sd(glmmData$BIS)
- mean_pred3 <- mean(glmmData$OCI)
- sd_pred3 <- sd(glmmData$OCI)
- ### Imp*Comp
- # Specify the values for predictor2 and predictor3 at which to estimate the simple slopes
- emm <- emmeans(fit4b,
- ~ mean_beta_FRN | BIS * OCI,
- at = list(BIS = c(mean_pred2 - sd_pred2, mean_pred2, mean_pred2 + sd_pred2),
- OCI = c(mean_pred3 - sd_pred3, mean_pred3, mean_pred3 + sd_pred3)))
- # View the estimated marginal means and simple slopes
- summary(emm)
- # Regrid the emmeans object to back-transform estimates
- regridded_emm <- regrid(emm)
- # Use emtrends to test the slope of FRN effect at different levels of Imp and Comp
- slopes <- emtrends(fit4b, ~ BIS * OCI, var = "mean_beta_FRN",
- at = list(BIS = c(mean_pred2 - sd_pred2, mean_pred2, mean_pred2 + sd_pred2),
- OCI = c(mean_pred3 - sd_pred3, mean_pred3, mean_pred3 + sd_pred3)))
- slopes2 <- emtrends(fit4b, ~ BIS * OCI, var = "mean_beta_FRN",
- at = list(BIS = c(mean_pred2 - sd_pred2, mean_pred2 + sd_pred2),
- OCI = c(mean_pred3 - sd_pred3, mean_pred3 + sd_pred3)))
- #compare slopes
- pairs(slopes, simple = "each")
- ## plot interactions
- glmmData$Impulsivity <- glmmData$BIS
- glmmData$Compulsivity <- glmmData$OCI
- glmmData$FRN <- glmmData$mean_beta_FRN
- glmmData$P3 <- glmmData$mean_beta_fbP3b
- glmmData$Enactment <- glmmData$enactment
- fit4plot <- glmer(Enactment ~ desire_strength + conflict_strength +
- FRN + FRN:Impulsivity + FRN:Compulsivity + Impulsivity:Compulsivity:FRN +
- P3 + P3:Impulsivity + P3:Compulsivity + Impulsivity:Compulsivity:P3 +
- (1 + desire_strength + conflict_strength|name),
- family = binomial("logit"), data = glmmData,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=100000)))
- summary(fit4plot)
- #FRN
- #big fonts get smaller when images are saved
- interact_plot(fit4plot, pred = FRN, modx = Impulsivity, mod2 = Compulsivity,
- outcome.scale = 'response', interval = T, x.label = "FRN effect", colors = "Dark2") +
- theme(axis.title.x = element_text( size = 30, face = "bold"),
- axis.title.y = element_text( size = 30, face = "bold"),
- plot.subtitle = element_text(size = 28),
- axis.text = element_text( size = 14),
- legend.title=element_text(size=22),
- legend.text=element_text(size=22))
- interact_plot(fit4plot, pred = FRN, modx = Compulsivity, mod2 = Impulsivity,
- outcome.scale = 'response', interval = T, x.label = "FRN effect", colors = "Dark2") +
- theme(axis.title.x = element_text( size = 30, face = "bold"),
- axis.title.y = element_text( size = 30, face = "bold"),
- plot.subtitle = element_text(size = 28),
- axis.text = element_text( size = 14),
- legend.title=element_text(size=22),
- legend.text=element_text(size=22))
- interact_plot(fit4plot, pred = FRN, modx = Compulsivity, interval = T, x.label = "FRN effect", colors = "Dark2") +
- geom_line(size = 1) +
- theme(axis.title.x = element_text( size = 30, face = "bold"),
- axis.title.y = element_text( size = 30, face = "bold"),
- axis.text = element_text( size = 14),
- legend.title=element_text(size=22),
- legend.text=element_text(size=22))
- interact_plot(fit4plot, pred = FRN, modx = Impulsivity, interval = T)
- geom_line(size = 10)
- #P3
- interact_plot(fit4plot, pred = P3, modx = Impulsivity, mod2 = Compulsivity,
- outcome.scale = 'response')
- interact_plot(fit4plot, pred = P3, modx = Compulsivity, mod2 = Impulsivity,
- outcome.scale = 'response')
- interact_plot(fit4plot, pred = P3, modx = Compulsivity)
- geom_line(size = 10)
- interact_plot(fit4plot, pred = P3, modx = Impulsivity)
- geom_line(size = 10)
- ###############################################################################################################
- ############ explore effect of desire and conflict occurrence ###########################################################
- ###############################################################################################################
- ### conflict occurence by EEG
- fit6a1 <- glmer(conflict ~ mean_beta_FRN + mean_beta_fbP3b + BIS + OCI + (1|name),
- family = binomial("logit"), data = glmmData,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=1e9)))
- summary(fit6a)
- fit6a2 <- glmer(conflict ~ mean_beta_FRN:BIS:OCI + mean_beta_fbP3b:BIS:OCI + BIS + OCI + (1|name),
- family = binomial("logit"), data = glmmData,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=1e9)))
- summary(fit6a2)
- sjPlot::tab_model(fit6a2)
- report::report(fit6a2)
- interact_plot(fit6a2, pred = mean_beta_FRN, modx = OCI,
- outcome.scale = 'response', interval = T)
- ggplot(glmmData, aes(x=OCI, y=conflict)) +
- labs(x="Compulsivity", y="Conflict") +
- geom_smooth(method=glm , color="#D95F02", ,size = 1.5, se=TRUE) +
- theme_minimal() +
- theme(panel.grid.minor = element_blank()) +
- theme(panel.grid.major = element_line(,size = 0.5,linetype = 5)) +
- theme(axis.title.x = element_text(color = "#34495e", size = 16, face = "bold"),
- axis.title.y = element_text(color = "#34495e", size = 16, face = "bold")) +
- ylim(0.0, 1.0)
- ### desire occurence
- fit7a <- glmer(desire ~ mean_beta_FRN:BIS:OCI + mean_beta_fbP3b:BIS:OCI + BIS + OCI + (1|name),
- family = binomial("logit"), data = glmmData,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=1e9)))
- summary(fit7a)
- sjPlot::tab_model(fit7a)
- report::report(fit7a)
- interact_plot(fit7a, pred = mean_beta_FRN, modx = OCI,
- outcome.scale = 'response', interval = T)
- ggplot(glmmData, aes(x=OCI, y=desire)) +
- labs(x="Compulsivity", y="Desire") +
- geom_smooth(method=glm, color = "#D95F02" ,size = 1.5, se=TRUE) +
- theme_minimal() +
- theme(panel.grid.minor = element_blank()) +
- theme(panel.grid.major = element_line(size = 0.5,linetype = 5)) +
- theme(axis.title.x = element_text( size = 16, face = "bold", color = "#34495e"),
- axis.title.y = element_text( size = 16, face = "bold", color = "#34495e")) +
- ylim(0.0, 1.0)
- ### explore FRN and EMA
- fit8a <- glmer(enactment ~ conflict_strength*desire_strength + conflict_strength:mean_beta_FRN:BIS + conflict_strength:mean_beta_FRN:OCI +
- desire_strength:mean_beta_FRN:BIS + desire_strength:mean_beta_FRN:OCI +(1 + desire_strength + conflict_strength|name),
- family = binomial("logit"), data = glmmData,
- control=glmerControl(optimizer="bobyqa", optCtrl=list(maxfun=1e9)))
- summary(fit8a) #only EMA data predicts enactment
SelfControl_2tasks_MLM_OSF.R, no license · at the source
Overview
Abstract
Impaired self-control is linked to maladaptive behavior and psychopathology and may be shaped by transdiagnostic factors such as impulsivity and compulsivity. Both traits show associations with model-based control, which supports goal-directed behavior by representing long-term action consequences. To investigate how model-based control and personality traits relate to everyday self-control, we combined single-trial EEG data (modulation of the feedback-related negativity [FRN] and P3) from 236 participants during a two-step decision-making task with self-reported impulsivity (BIS-11) and compulsivity (OCI-R) and a seven-day ecological momentary assessment of daily-life self-control. Mixed-effects models revealed that desire enactment was more likely when desires were stronger and perceived conflicts weaker. The effect of model-based control varied with impulsivity and compulsivity: In individuals low in compulsivity, stronger modulations of the FRN, suggesting higher model-based control, were connected to fewer desire enactments, suggesting a protecting role of model-based control. This pattern reversed at high compulsivity levels, possibly due to greater conflict awareness but reduced behavioral regulation capacity. Impulsivity moderated compulsivity effects, such that model-based control consistently predicted reduced enactment at high impulsivity levels. These findings highlight how compulsivity and impulsivity shape the translation of cognitive control into everyday behavior and offer insights into mechanisms underlying self-control deficits.
Supplementary Information: The online version contains supplementary material available at 10.1038/
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 vjnhw
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
1 file
- Data and code/
SelfControl_2tasks_MLM_O , R, 495 lines, 1 matchSF.R
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
Data and analysis routines are available under [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 2, 28 September 2026
- Funding: added Deutsche Forschungsgemeinschaft; Technische Universität Dresden
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 3 keywords, 10 MeSH terms, 75 references.
Cite
This paper
Dück, K., Overmeyer, R., Wüllhorst, R., & Endrass, T. (2026). Dissecting the interplay of model-based control, impulsivity and compulsivity on self-control in daily life. Scientific reports, 16(1), 19167. https://
BibTeX
@article{duck2026dissect
author = {Dück, Kerstin and Overmeyer, Rebecca and Wüllhorst, Raoul and Endrass, Tanja},
title = {{Dissecting the interplay of model-based control, impulsivity and compulsivity on self-control in daily life}},
journal = {Scientific reports},
year = {2026},
month = jun,
volume = {16},
number = {1},
pages = {19167},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/
url = {https://
pmid = {42321288},
pmcid = {PMC13282391}
}
RIS
TY - JOUR
AU - Dück, Kerstin
AU - Overmeyer, Rebecca
AU - Wüllhorst, Raoul
AU - Endrass, Tanja
TI - Dissecting the interplay of model-based control, impulsivity and compulsivity on self-control in daily life
T2 - Scientific reports
J2 - Sci Rep
PY - 2026
DA - 2026/
VL - 16
IS - 1
SP - 19167
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Dissecting the interplay of model-based control, impulsivity and compulsivity on self-control in daily life",
"container-title": "Scientific reports",
"author": [
{
"family": "Dück",
"given": "Kerstin"
},
{
"family": "Overmeyer",
"given": "Rebecca"
},
{
"family": "Wüllhorst",
"given": "Raoul"
},
{
"family": "Endrass",
"given": "Tanja"
}
],
"container-title-short":
"volume": "16",
"issue": "1",
"page": "19167",
"DOI": "10.1038/
"PMID": "42321288",
"PMCID": "PMC13282391",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
19
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41598-024-71692-w [code]
- On the effects of impulsivity and compulsivity on neural correlates of model-based performance.Journal: Scientific reportsIn common: lme4, ggplot2, tidyverse, EEG, cognitive, 35 references, author Kerstin Dück
- [2] doi:10.1111/psyp.70142 [code]
- Altered Reward Processing in Obsessive-Compulsive Disorder: Insights From Active and Observational Learning.Journal: PsychophysiologyIn common: easystats, emmeans, car, 3 other tools, EEG, cognitive, 12 references
- [3] doi:10.1038/s44271-026-00446-3 [code]
- The association between the error-related negativity and self-control is moderated by impulsivity and compulsivity.Journal: Communications psychologyIn common: easystats, emmeans, car, 3 other tools, EEG, cognitive, 10 references
- [4] doi:10.1038/s41598-024-60328-8 [code]
- Prediction-error-depende
nt processing of immediate and delayed positive feedback. Journal: Scientific reportsIn common: psych, emmeans, lme4, 2 other tools, EEG, cognitive, 11 references - [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, cognitive, 12 references
- [6] doi:10.1038/s41398-026-04098-z [code]
- Neural imbalance between feedback sensitivity and motor inhibition in compulsivity and negative urgency.Journal: Translational psychiatryIn common: EEG, 10 references, author Kerstin Dück
- [7] doi:10.1093/scan/nsae063 [code]
- Neural dynamics underlying the illusion of control during reward processing.Journal: Social cognitive and affective neuroscienceIn common: easystats, psych, emmeans, 4 other tools, EEG, 7 references
- [8] 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: easystats, psych, car, 3 other tools, EEG, cognitive, 7 references
- [9] doi:10.3758/s13415-025-01281-5 [code]
- The impact of impulsivity and compulsivity on error processing in different motivational contexts.Journal: Cognitive, affective & behavioral neuroscienceIn common: EEG, 12 references
- [10] 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: car, lme4, ggplot2, 1 other tool, EEG, cognitive, 7 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, 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:a67983a77be47d9b…
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.1038/s41598-026-58046-4)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41598-026-58046-4.svg
:target: https://openscicode.org/badge/doi/10.1038/s41598-026-58046-4
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41598-026-58046-4"><img src="https://openscicode.org/badge/doi/10.1038/s41598-026-58046-4.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.
