Computational phenotyping of effort-based decision-making in type-2 diabetes on and off semaglutide.
The 6 matches
- [1] § Results › Time since semaglutide injection did not affect effort-based decision-making ↔ code/analyses/5_primary_analyses.R, lines 247–306 · score 0.71 · Uncontrolled Eating, Emotional Eating, Cognitive Restrained, TFEQ
- [2] § Methods › Recruitment and data acquisition ↔ code/functions/screener_parsing_fun.R, lines 53–85 · score 0.62 · chronic disease, daily medication, neurological, GLP, treatment, diabetes
- [3] § Methods › Procedure › Self-report questionnaires ↔ code/analyses/5_primary_analyses.R, lines 247–306 · score 0.57 · factor Eating Questionnaire, Monetary, MCQ, TFEQ
- [4] § Methods › Procedure › Compliance checks and exclusion criteria ↔ code/analyses/1_screening.R, lines 45–83 · score 0.56 · severe neurological disorder, B2, English
- [5] § Results › Type-2 diabetes subjects show a reduced bias to accept effort for reward ↔ code/analyses/6_non_diabetic_comparison.R, lines 209–252 · score 0.56 · 18.5–25, BMI matched, acceptance bias, semaglutide
- [6] § Results ↔ code/analyses/3_task_model_based.R, lines 370–421 · score 0.56 · Posterior predictive checks, winning model, model comparison, parabolic, fit
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 · 436 lines · 16 KB · no license · 2 matches
- #################################################################################################
- #######################---------------- Primary analyses ----------------########################
- #################################################################################################
- ### In this script:
- # (1) Prepare data
- # (2) Task data - model based
- # (3) Questionnaire data
- # Set working directory
- here::i_am("github/semaglutide-study/code/analyses/5_primary_analyses.R")
- setwd(here::here())
- # source functions
- source("github/semaglutide-study/code/functions/helper_funs.R")
- source("github/semaglutide-study/code/functions/plot_funs.R")
- # source dataset
- main_data <- readRDS("data/processed_data/main_data.RDS")
- # source parameter estimates
- m3_para_treat_s1_params <- readRDS(here::here("github/semaglutide-study/data/model_fits/treatment_s1/m3_para_treat_s1_params.RDS"))
- m3_para_control_params <- readRDS(here::here("github/semaglutide-study/data/model_fits/controls/m3_para_control_params.RDS"))
- # load required packages
- librarian::shelf(ggplot2, ggpubr, tidyverse, dplyr, stringr, purrr, here, janitor, MatchIt, PupillometryR,
- writexl, lubridate, magrittr, pushoverr, nlme, gridExtra, cmdstanr, rstanarm, bayestestR, hms)
- # Color pallet
- color_pal <- c("#E94D36", "#5B9BD5", "#71AB48", "#FDC219", "#8456B8", "#FF7236", "#1FD5B3", "#F781BE")
- ### (1) Prepare data -----------------------------------------------
- # Merge datasets for analyses
- data <- main_data$demographic_data %>%
- select(subj_id, group, age, gender, bmi, antidepressant) %>%
- mutate(antidepressant = ifelse(is.na(antidepressant), 0, antidepressant)) %>%
- left_join(main_data$glp_data %>%
- filter(session == 1) %>%
- select(subj_id, start_date_glp, side_effects_glp, glp_dose_mg, hours_since_injection, testing_day, local_testing_time) %>%
- mutate(time_on_glp = abs(difftime(as_date(start_date_glp), testing_day, units="days"))),
- by = "subj_id") %>%
- left_join(main_data$questionnaire_data %>%
- filter(session == 1) %>%
- select(subj_id, aes_sumScore, bdi_sumScore, findrisc_sumScore, mcq_discounting_rate, mctq_MSF_SC, meq_sumScore,
- ocir_sumScore, daq_sumScore, shaps_sumScore, tfeq_cr_sumScore, tfeq_ue_sumScore, tfeq_ee_sumScore,
- ipaq_sumScore, last_meal_time, last_meal_size, snack, snack_time, hunger_rating, cgl, cgl_measure,cgl_unit, hunger_rating),
- by = "subj_id") %>%
- left_join(main_data$task_meta_data %>%
- filter(session == 1) %>%
- select(subj_id, start_time)) %>%
- left_join(rbind(m3_para_treat_s1_params$individual_params %>%
- pivot_wider(id_cols = subj_id, names_from = parameter,
- values_from = c(estimate, hdi_lower, hdi_upper)),
- m3_para_control_params$individual_params %>%
- pivot_wider(id_cols = subj_id, names_from = parameter,
- values_from = c(estimate, hdi_lower, hdi_upper))),
- by = "subj_id") %>%
- # make MCTQ result numeric (minutes since 00:00)
- add_column(mctq_continuous = period_to_seconds(hm(.$mctq_MSF_SC))/60,
- .before = "mctq_MSF_SC")
- # Parameters
- # Scale parameters to be between 0 and 1
- data %<>%
- ungroup %>%
- mutate(across(c(estimate_kE, estimate_kR, estimate_a), rescale))
- # Visualize distributions
- ggplot(gather(data %>% select(c(estimate_kE:estimate_a))) %>% na.omit(),
- aes(value)) +
- geom_histogram(bins = 10) +
- facet_wrap(~key, scales = 'free_x')
- # Questionnaires
- # Scale parameters to be between 0 and 1
- data %<>%
- ungroup %>%
- mutate_at(colnames(data)[c(14:18, 21:27)], rescale)
- # Visualize distributions
- ggplot(gather(data %>% select(colnames(data)[c(5, 14:18, 21:27)])) %>% na.omit(),
- aes(value)) +
- geom_histogram(bins = 10) +
- facet_wrap(~key, scales = 'free_x')
- data %<>%
- # positively skewed
- mutate_at(c("bdi_sumScore", "daq_sumScore",
- "mcq_discounting_rate", "mctq_continuous",
- "ocir_sumScore", "shaps_sumScore"), sqrt) %>%
- # negatively skewed
- mutate_at(c("aes_sumScore"), norm_neg_skew)
- ### (2) Task data - model based -----------------------------------------------
- ### Effort sensitivity
- data %>%
- group_by(group) %>%
- summarise(mean_kE = mean(estimate_kE),
- sd_kE = sd(estimate_kE))
- # Check if variances are equal
- var.test(data$estimate_kE ~ data$group)
- # => variances are equal -> t test
- t.test(data$estimate_kE ~ data$group, var.equal = TRUE)
- kE_glm <- stan_glm(estimate_kE ~ group, data = data,
- iter = 10000, seed = 123)
- kE_glm$coefficients
- hdi(kE_glm)
- kE_plot <- raincloud_plot(dat = data, title = "",
- xlab = " ", ylab = "Effort sensitivity",
- predictor_var = "group", outcome_var = "estimate_kE",
- predictor_tick_lab = c("control", "treatment"), col = c(color_pal[1], color_pal[2]),
- include_grouping = FALSE, direction = "horizontal", scale_seq = c(-0, 1,0.25)) +
- theme(legend.position = "none") +
- ggtitle("Effort sensitivity")
- ### Reward sensitivity
- data %>%
- group_by(group) %>%
- summarise(mean_kR = mean(estimate_kR),
- sd_kR = sd(estimate_kR))
- # Check if variances are equal
- var.test(data$estimate_kR ~ data$group)
- # => variances are not equal -> welch test
- t.test(data$estimate_kR ~ data$group, var.equal = FALSE)
- kR_glm <- stan_glm(estimate_kR ~ group, data = data,
- iter = 10000, seed = 123)
- kR_glm$coefficients
- hdi(kR_glm)
- kR_plot <- raincloud_plot(dat = data, title = "",
- xlab = " ", ylab = "Reward sensitivity",
- predictor_var = "group", outcome_var = "estimate_kR",
- predictor_tick_lab = c("control", "treatment"), col = c(color_pal[1], color_pal[2]),
- include_grouping = FALSE, direction = "horizontal", scale_seq = c(-0, 1,0.25)) +
- theme(legend.position = "none") +
- ggtitle("Reward sensitivity")
- ### Choice bias
- data %>%
- group_by(group) %>%
- summarise(mean_a = mean(estimate_a),
- sd_a = sd(estimate_a))
- # Check if variances are equal
- var.test(data$estimate_a ~ data$group)
- # => variances are equal -> t test
- t.test(data$estimate_a ~ data$group, var.equal = FALSE)
- # Bayesian GLM
- a_glm <- stan_glm(estimate_a ~ group, data = data,
- iter = 100000, seed = 123)
- a_glm$coefficients
- hdi(a_glm)
- a_plot <- raincloud_plot(dat = data, title = "",
- xlab = " ", ylab = "Choice bias",
- predictor_var = "group", outcome_var = "estimate_a",
- predictor_tick_lab = c("control", "treatment"), col = c(color_pal[1], color_pal[2]),
- include_grouping = FALSE, direction = "horizontal", scale_seq = c(-0, 1, 0.25)) +
- theme(legend.position = "none") +
- ggtitle("Choice bias")
- ### (3) Questionnaire data -----------------------------------------------
- ### Psychiatric questionnaires ----
- # Correlation between questionnaires
- psych_cor <- data %>%
- select(bmi, aes_sumScore, bdi_sumScore, ocir_sumScore, daq_sumScore, shaps_sumScore) %>%
- rename(aes = aes_sumScore, bdi = bdi_sumScore, ocir = ocir_sumScore, daq = daq_sumScore, shaps = shaps_sumScore) %>%
- cor()
- corrplot::corrplot(psych_cor, method="circle")
- # Group comparison
- # AES
- # frequentist
- data %>%
- group_by(group) %>%
- summarise(mean_aes = mean(aes_sumScore),
- sd_aes = sd(aes_sumScore))
- t.test(aes_sumScore ~ group, data = data)
- aes_f_glm <- glm(aes_sumScore ~ group, data = data, family = "gaussian")
- summary(aes_f_glm)
- # bayesian
- aes_b_glm <- stan_glm(aes_sumScore ~ group, data = data,
- iter = 10000, seed = 123)
- aes_b_glm$coefficients
- hdi(aes_b_glm)
- # BDI
- data %>%
- group_by(group) %>%
- summarise(mean_bdi = mean(bdi_sumScore),
- sd_bdi = sd(bdi_sumScore))
- t.test(bdi_sumScore ~ group, data = data)
- bdi_f_glm <- glm(bdi_sumScore ~ group, data = data, family = "gaussian")
- summary(bdi_f_glm)
- # bayesian
- bdi_b_glm <- stan_glm(bdi_sumScore ~ group, data = data,
- iter = 10000, seed = 123)
- bdi_b_glm$coefficients
- hdi(bdi_b_glm)
- # OCIR
- # frequentist
- data %>%
- group_by(group) %>%
- summarise(mean_ocir = mean(ocir_sumScore),
- sd_ocir = sd(ocir_sumScore))
- t.test(ocir_sumScore ~ group, data = data)
- ocir_f_glm <- glm(ocir_sumScore ~ group, data = data, family = "gaussian")
- summary(ocir_f_glm)
- # bayesian
- ocir_b_glm <- stan_glm(ocir_sumScore ~ group, data = data,
- iter = 10000, seed = 123)
- ocir_b_glm$coefficients
- hdi(ocir_b_glm)
- # DAQ
- # frequentist
- data %>%
- group_by(group) %>%
- summarise(mean_daq = mean(daq_sumScore),
- sd_daq = sd(daq_sumScore))
- t.test(daq_sumScore ~ group, data = data)
- daq_f_glm <- glm(daq_sumScore ~ group, data = data, family = "gaussian")
- summary(daq_f_glm)
- # bayesian
- daq_b_glm <- stan_glm(daq_sumScore ~ group, data = data,
- iter = 10000, seed = 123)
- daq_b_glm$coefficients
- hdi(daq_b_glm)
- # SHAPS
- # frequentist
- data %>%
- group_by(group) %>%
- summarise(mean_shaps = mean(shaps_sumScore),
- sd_shaps = sd(shaps_sumScore))
- t.test(shaps_sumScore ~ group, data = data)
- shaps_f_glm <- glm(shaps_sumScore ~ group, data = data, family = "gaussian")
- summary(shaps_f_glm)
- # bayesian
- shaps_b_glm <- stan_glm(shaps_sumScore ~ group, data = data,
- iter = 10000, seed = 123)
- shaps_b_glm$coefficients
- hdi(shaps_b_glm)
- # Monetary discounting
- # frequentist
- data %>%
- group_by(group) %>%
- summarise(mean_mcq = mean(mcq_discounting_rate),
- sd_mcq = sd(mcq_discounting_rate))
- t.test(mcq_discounting_rate ~ group, data = data)
- mcq_glm <- glm(mcq_discounting_rate ~ group, data = data, family = "gaussian")
- summary(mcq_glm)
- # bayesian
- mcq_glm <- stan_glm(mcq_discounting_rate ~ group, data = data,
- iter = 10000, seed = 123)
- mcq_glm$coefficients
- hdi(mcq_glm)
- ### Three factor eating questionnaire ----
- # Correlation between questionnaires
- eat_cor <- data %>%
- select(tfeq_cr_sumScore, tfeq_ue_sumScore, tfeq_ee_sumScore) %>%
- rename(cognitive_restraint = tfeq_cr_sumScore, uncontrolled_eating = tfeq_ue_sumScore, emotional_eating = tfeq_ee_sumScore) %>%
- cor()
- corrplot::corrplot(eat_cor, method="circle")
- # Cognitive restrained
- # frequentist
- data %>%
- group_by(group) %>%
- summarise(mean_cr = mean(tfeq_cr_sumScore),
- sd_cr = sd(tfeq_cr_sumScore))
- t.test(tfeq_cr_sumScore ~ group, data = data)
- tfeq_cr_f_glm <- glm(tfeq_cr_sumScore ~ group, data = data, family = "gaussian")
- summary(tfeq_cr_f_glm)
- # bayesian
- tfeq_cr_glm <- stan_glm(tfeq_cr_sumScore ~ group, data = data,
- iter = 10000, seed = 123)
- tfeq_cr_glm$coefficients
- hdi(tfeq_cr_glm)
- # Uncontrolled eating
- # frequentist
- data %>%
- group_by(group) %>%
- summarise(mean_ue = mean(tfeq_ue_sumScore),
- sd_ue = sd(tfeq_ue_sumScore))
- t.test(tfeq_ue_sumScore ~ group, data = data)
- tfeq_ue_f_glm <- glm(tfeq_ue_sumScore ~ group, data = data, family = "gaussian")
- summary(tfeq_ue_f_glm)
- # bayesian
- tfeq_ue_glm <- stan_glm(tfeq_ue_sumScore ~ group, data = data,
- iter = 10000, seed = 123)
- tfeq_ue_glm$coefficients
- hdi(tfeq_ue_glm)
- tfeq_ue_plot <- raincloud_plot(dat = data, title = "",
- xlab = " ", ylab = "Uncontrolled Eating",
- predictor_var = "group", outcome_var = "tfeq_ue_sumScore",
- predictor_tick_lab = c("control", "treatment"), col = c(color_pal[1], color_pal[2]),
- include_grouping = FALSE, direction = "horizontal", scale_seq = c(-0, 1,0.25)) +
- theme(legend.position = "none") +
- ggtitle("Uncontrolled Eating")
- # Emotional eating
- # frequentist
- data %>%
- group_by(group) %>%
- summarise(mean_ee = mean(tfeq_ee_sumScore),
- sd_ee = sd(tfeq_ee_sumScore))
- t.test(tfeq_ee_sumScore ~ group, data = data)
- tfeq_ee_f_glm <- glm(tfeq_ee_sumScore ~ group, data = data, family = "gaussian")
- summary(tfeq_ee_f_glm)
- # bayesian
- tfeq_ee_glm <- stan_glm(tfeq_ee_sumScore ~ group, data = data,
- iter = 10000, seed = 123)
- tfeq_ee_glm$coefficients
- hdi(tfeq_ee_glm)
- # Controlling for antidepressants
- tfeq_cr_f_glm <- glm(tfeq_cr_sumScore ~ group + antidepressant, data = data, family = "gaussian")
- summary(tfeq_cr_f_glm)
- tfeq_ue_f_glm <- glm(tfeq_ue_sumScore ~ group + antidepressant, data = data, family = "gaussian")
- summary(tfeq_ue_f_glm)
- tfeq_ee_f_glm <- glm(tfeq_ee_sumScore ~ group + antidepressant, data = data, family = "gaussian")
- summary(tfeq_ee_f_glm)
- # Effect of time on medication in Ozempic group?
- time_on_glp_ue_f_glm <- glm(tfeq_ue_sumScore ~ time_on_glp,
- data = data %>% filter(group == "treatment"),
- family = "gaussian")
- summary(time_on_glp_ue_f_glm)
- time_on_glp_ue_glm <- stan_glm(tfeq_ue_sumScore ~ time_on_glp, data = data %>% filter(group == "treatment"),
- iter = 10000, seed = 123)
- time_on_glp_ue_glm$coefficients
- hdi(time_on_glp_ue_glm)
- ggplot(data %>% filter(group == "treatment"),
- aes(time_on_glp, tfeq_ue_sumScore)) +
- geom_point() +
- stat_smooth(method = "lm",
- formula = y ~ x,
- geom = "smooth")
- ### Circadian questionnaires ----
- # Correlation between questionnaires
- circ_cor <- data %>%
- select(mctq_continuous, meq_sumScore) %>%
- rename(MCTQ = mctq_continuous, MEQ = meq_sumScore) %>%
- cor()
- corrplot::corrplot(circ_cor, method="circle")
- # MCTQ
- # frequentist
- data %>%
- group_by(group) %>%
- summarise(mean_mctq = mean(mctq_continuous),
- sd_mctq = sd(mctq_continuous))
- t.test(mctq_continuous ~ group, data = data)
- mctq_f_glm <- glm(mctq_continuous ~ group, data = data, family = "gaussian")
- summary(mctq_f_glm)
- # bayesian
- mctq_glm <- stan_glm(mctq_continuous ~ group, data = data,
- iter = 10000, seed = 123)
- mctq_glm$coefficients
- hdi(mctq_glm)
- # MEQ
- # frequentist
- data %>%
- group_by(group) %>%
- summarise(mean_meq = mean(meq_sumScore),
- sd_meq = sd(meq_sumScore))
- t.test(meq_sumScore ~ group, data = data)
- meq_f_glm <- glm(meq_sumScore ~ group, data = data, family = "gaussian")
- summary(meq_f_glm)
- # bayesian
- meq_glm <- stan_glm(meq_sumScore ~ group, data = data,
- iter = 10000, seed = 123)
- meq_glm$coefficients
- hdi(meq_glm)
- # Make chronotype
- data %<>%
- mutate(chronotype = case_when(meq_sumScore > 58 & hm(mctq_MSF_SC) < hm("02:30") ~ "early",
- meq_sumScore < 42 & hm(mctq_MSF_SC) > hm("05:30") ~ "late",
- is.na(mctq_MSF_SC) ~ "NA",
- .default = "intermediate"))
- data %>%
- tabyl(group, chronotype) %>%
- chisq.test()
- # Test relationship between chronotype and time of testing
- data %<>%
- mutate(local_testing_time = as.POSIXct(paste("01jan2000 ", local_testing_time, ":00", sep = ""),
- format = "%d%b%Y %H:%M:%S")) %>%
- mutate(local_testing_time = case_when(as.POSIXlt(local_testing_time)$hour < 4 ~ .$local_testing_time + days(1),
- .default = .$local_testing_time ))
- chronotype_testing_time <- glm(data$local_testing_time %>% as.numeric() ~
- data$chronotype, family = "gaussian")
- summary(chronotype_testing_time)
- time_chrono_plot <- raincloud_plot(dat = data, title = "",
- xlab = " ", ylab = "Testing Time",
- predictor_var = "chronotype", outcome_var = "local_testing_time",
- predictor_tick_lab = c("early", "intermediate", "late"), col = c(color_pal[1], color_pal[2], color_pal[3]),
- include_grouping = FALSE, direction = "horizontal", scale_seq = NULL) +
- theme(legend.position = "none") +
- ggtitle("Time of testing by Chronotype")
- time_meq_plot <- ggplot(data = data,
- aes_string(y = "meq_sumScore", x = "local_testing_time")) +
- geom_point(aes(color = color_pal[3])) +
- stat_smooth(method = "lm",
- formula = y ~ x,
- geom = "smooth",
- aes(color = color_pal[3]))
5_primary_analyses.R at commit 24265e3, no license · at the source
Overview
- MRC Cognition and Brain Sciences Unit, University of Cambridge, Cambridge, UK
- Department of Psychiatry, University of Cambridge, Cambridge, UK
Abstract
Motivation plays a fundamental role in human behaviour. Dopaminergic pathways have long been implicated in individual differences in motivation. Emerging evidence suggests such neural mechanisms interact with metabolic processes to coordinate energy expenditure with energy resources, thereby linking motivation with metabolic health. We ask whether a cognitive-computational index of motivation—reliably linked to neuropsychiatric symptoms—is altered in the context of type-2 diabetes and treatment with a GLP-1 agonist (semaglutide). In a pre-registered experiment, we quantified computational effort-based decision-making parameters in participants with diabetes on (N = 58) or off (N = 54) semaglutide treatment, compared to two groups of matched controls without diabetes (N = 58 each). Subjects with type-2 diabetes showed a blunted acceptance bias, a computational parameter describing the bias to accept effort for reward. This effect was not driven by neuropsychiatric comorbidity or antidepressant use. Across all participants, we found that increasing diabetes risk linearly predicted reduced acceptance bias. Participants with diabetes treated with semaglutide did not show restored motivation. Metabolic ill-health is associated with reduced acceptance bias during motivational decision-making. This blunting mirrors—but is largely independent of—neuropsychiatric motivational deficits. This suggests metabolic ill-health is accompanied by a cognitive shift towards energy conservation, potentially contributing to comorbidity between metabolic ill-health and mental illness.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 6 matches between paragraphs and lines of code.
OSF 7kmf5
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
smehrhof/semaglutide-study
24265e3830c49ab74ad2af6420ab1565961ab643, 23 June 2025Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
33 files
- code/
analyses/ , R, 589 lines, 1 match1_screening.R - code/
analyses/ , R, 614 lines2_data_processing.R - code/
analyses/ , R, 330 lines3_descriptives.R - code/
analyses/ , R, 1,377 lines4_model_fitting.R - code/
analyses/ , R, 436 lines, 2 matches5_primary_analyses.R - code/
analyses/ , R, 374 lines, 1 match6_non_diabetic_compariso n.R - code/
analyses/ , R, 144 lines7_within_subject_compari son.R - code/
functions/ , R, 141 linesextract_posterior_predic tions_fun.R - code/
functions/ , R, 73 lineshelper_funs.R - code/
functions/ , R, 146 linesmodel_comparison_fun.R - code/
functions/ , R, 75 linesmodel_convergence_check_ fun.R - code/
functions/ , R, 110 linesmodel_preprocess_fun.R - code/
functions/ , R, 49 linesparameter_estimates_fun. R - code/
functions/ , R, 886 linesparsing_fun.R - code/
functions/ , R, 418 linesplot_funs.R - code/
functions/ , R, 456 lines, 1 matchscreener_parsing_fun.R - code/
stan/ , Stan, 101 linesmodels_exponential/ ed_m1_exponential.stan - code/
stan/ , Stan, 102 linesmodels_exponential/ ed_m2_exponential.stan - code/
stan/ , Stan, 108 linesmodels_exponential/ ed_m3_exponential.stan - code/
stan/ , Stan, 14 linesmodels_exponential/ pre/ license.stan - code/
stan/ , Stan, 101 linesmodels_linear/ ed_m1_linear.stan - code/
stan/ , Stan, 102 linesmodels_linear/ ed_m2_linear.stan - code/
stan/ , Stan, 108 linesmodels_linear/ ed_m3_linear.stan - code/
stan/ , Stan, 147 linesmodels_linear/ ed_m3_linear_retest.stan - code/
stan/ , Stan, 14 linesmodels_linear/ pre/ license.stan - code/
stan/ , Stan, 101 linesmodels_parabolic/ ed_m1_parabolic.stan - code/
stan/ , Stan, 102 linesmodels_parabolic/ ed_m2_parabolic.stan - code/
stan/ , Stan, 133 linesmodels_parabolic/ ed_m2_parabolic_retest.s tan - code/
stan/ , Stan, 108 linesmodels_parabolic/ ed_m3_parabolic.stan - code/
stan/ , Stan, 146 linesmodels_parabolic/ ed_m3_parabolic_retest.s tan - code/
stan/ , Stan, 14 linesmodels_parabolic/ pre/ license.stan - code/
stan/ , Stan, 14 linespre/ license.stan - README.md, Text, 53 lines
smehrhof/effort-study
80f3557d5fe4e159c46866d3259d05299d71660f, 16 June 2025Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
56 files
- code/
analyses/ , R, 321 lines1_descriptives.R - code/
analyses/ , R, 631 lines2_task_model_agnostic.R - code/
analyses/ , R, 619 lines, 1 match3_task_model_based.R - code/
analyses/ , R, 397 lines4_main_analyses.R - code/
analyses/ , R, 461 lines5_mdd_hc_comparison.R - code/
analyses/ , R, 907 lines6_circadian_analyses.R - code/
functions/ , R, 141 linesextract_posterior_predic tions_fun.R - code/
functions/ , R, 68 lineshelper_funs.R - code/
functions/ , R, 145 linesmodel_comparison_fun.R - code/
functions/ , R, 75 linesmodel_convergence_check_ fun.R - code/
functions/ , R, 110 linesmodel_preprocess_fun.R - code/
functions/ , R, 49 linesparameter_estimates_fun. R - code/
functions/ , R, 831 linesparsing_fun.R - code/
functions/ , R, 430 linesplot_funs.R - code/
functions/ , R, 85 linesretest_predictive_perfor mance_fun.R - code/
functions/ , R, 181 linestask_simulation_fun.R - code/
simulation_study/ , R, 935 linessimulation_study.R - code/
stan/ , Stan, 101 linesmodels_exponential/ ed_m1_exponential.stan - code/
stan/ , Stan, 102 linesmodels_exponential/ ed_m2_exponential.stan - code/
stan/ , Stan, 108 linesmodels_exponential/ ed_m3_exponential.stan - code/
stan/ , Stan, 14 linesmodels_exponential/ pre/ license.stan - code/
stan/ , Stan, 102 linesmodels_inverse_temp/ ed_m1_invtemp.stan - code/
stan/ , Stan, 108 linesmodels_inverse_temp/ ed_m2_invtemp.stan - code/
stan/ , Stan, 108 linesmodels_inverse_temp/ ed_m3_invtemp.stan - code/
stan/ , Stan, 114 linesmodels_inverse_temp/ ed_m4_invtemp.stan - code/
stan/ , Stan, 101 linesmodels_linear/ ed_m1_linear.stan - code/
stan/ , Stan, 102 linesmodels_linear/ ed_m2_linear.stan - code/
stan/ , Stan, 108 linesmodels_linear/ ed_m3_linear.stan - code/
stan/ , Stan, 147 linesmodels_linear/ ed_m3_linear_retest.stan - code/
stan/ , Stan, 14 linesmodels_linear/ pre/ license.stan - code/
stan/ , Stan, 101 linesmodels_parabolic/ ed_m1_parabolic.stan - code/
stan/ , Stan, 102 linesmodels_parabolic/ ed_m2_parabolic.stan - code/
stan/ , Stan, 133 linesmodels_parabolic/ ed_m2_parabolic_retest.s tan - code/
stan/ , Stan, 108 linesmodels_parabolic/ ed_m3_parabolic.stan - code/
stan/ , Stan, 146 linesmodels_parabolic/ ed_m3_parabolic_retest.s tan - code/
stan/ , Stan, 14 linesmodels_parabolic/ pre/ license.stan - code/
stan/ , Stan, 14 linespre/ license.stan - code/
task/ , JavaScript, 166 linesassets/ blob.js - code/
task/ , JavaScript, 120 linesassets/ canvas-to-blob.js - code/
task/ , JavaScript, 101 linesassets/ embed.js - code/
task/ , JavaScript, 253 linesassets/ filesaver.js - code/
task/ , JavaScript, 6 linesassets/ jquery-2.0.3.min.js - code/
task/ , JavaScript, 3 linesassets/ phaser.3.24.1.min.js - code/
task/ , JavaScript, 120 linesscenes/ calibration.js - code/
task/ , JavaScript, 76 linesscenes/ countdown.js - code/
task/ , JavaScript, 234 linesscenes/ feedback.js - code/
task/ , JavaScript, 167 linesscenes/ game.js - code/
task/ , JavaScript, 701 linesscenes/ instructions.js - code/
task/ , JavaScript, 257 linesscenes/ offer.js - code/
task/ , JavaScript, 266 linesscenes/ quiz.js - code/
test_retest/ , R, 50 lines1_descriptives.R - code/
test_retest/ , R, 99 lines2_task_model_agnostic.R - code/
test_retest/ , R, 735 lines3_task_model_based.R - code/
test_retest/ , R, 340 lines4_test_retest_reliabilit y.R - LICENSE, License, 21 lines
- README.md, Text, 85 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:
- 3 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 86 scripts, each with its path and the digest of its content;
- 6 matches 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
The analysis code and data are openly available at github.com/
The analysis code and data are openly available at github.com/
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 3 authors, 4 keywords, 13 MeSH terms, 4 funders, 40 references.
Cite
This paper
Mehrhof, S. Z., Fleming, H., & Nord, C. L. (2026). Computational phenotyping of effort-based decision-making in type-2 diabetes on and off semaglutide. Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology,
BibTeX
@article{mehrhof2026comp
author = {Mehrhof, Sara Z and Fleming, Hugo and Nord, Camilla L},
title = {{Computational phenotyping of effort-based decision-making in type-2 diabetes on and off semaglutide}},
journal = {Neuropsychopharmacology
year = {2026},
month = may,
volume = {51},
number = {11},
pages = {1924--1931},
publisher = {Nature Publishing Group},
issn = {0893-133X},
doi = {10.1038/
url = {https://
pmid = {42086986},
pmcid = {PMC13597482}
}
RIS
TY - JOUR
AU - Mehrhof, Sara Z
AU - Fleming, Hugo
AU - Nord, Camilla L
TI - Computational phenotyping of effort-based decision-making in type-2 diabetes on and off semaglutide
T2 - Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology
J2 - Neuropsychopharmacology
PY - 2026
DA - 2026/
VL - 51
IS - 11
SP - 1924
EP - 1931
SN - 0893-133X
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Computational phenotyping of effort-based decision-making in type-2 diabetes on and off semaglutide",
"container-title": "Neuropsychopharmacology
"author": [
{
"family": "Mehrhof",
"given": "Sara Z"
},
{
"family": "Fleming",
"given": "Hugo"
},
{
"family": "Nord",
"given": "Camilla L"
}
],
"container-title-short":
"volume": "51",
"issue": "11",
"page": "1924-1931",
"DOI": "10.1038/
"PMID": "42086986",
"PMCID": "PMC13597482",
"ISSN": "0893-133X",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
6
]
]
}
}
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/s44271-026-00431-w [code]
- Alpha power increases spontaneously during a neurofeedback session.Journal: Communications psychologyIn common: Stan, broom, cowplot, 3 other tools, cognitive
- [2] doi:10.1162/imag.a.1258 [code]
- Non-specific increase in alpha power during a neurofeedback session targeting its downregulation.Journal: Imaging neuroscience (Cambridge, Mass.)In common: Stan, broom, cowplot, 3 other tools
- [3] doi:10.1093/braincomms/fcag121 [code]
- Anterior insular co-activation patterns associated with stress markers in chronic primary pain.Journal: Brain communicationsIn common: cowplot, ggpubr, ggplot2, 1 other tool, 2 references
- [4] doi:10.1162/imag.a.1330 [code]
- Human risk taking and metabolic state: No credible evidence for desacyl-ghrelin modulation of neural or behavioural effects.Journal: Imaging neuroscience (Cambridge, Mass.)In common: Stan, cowplot, ggplot2, 1 other tool, cognitive, 1 reference
- [5] doi:10.1016/j.isci.2026.116747 [code]
- Age and loneliness relate to reduced trust learning and alterations in amygdala function.Journal: iScienceIn common: Stan, broom, cowplot, 2 other tools, cognitive
- [6] doi:10.1126/sciadv.aec9291 [code]
- Computational mechanisms of perception in autism revealed using games inspired by rodent operant tasks.Journal: Science advancesIn common: Stan, broom, ggpubr, 2 other tools, cognitive
- [7] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn common: Stan, broom, ggpubr, 2 other tools
- [8] doi:10.1016/j.nicl.2026.104053 [code]
- Childhood white matter organization predicts adolescent internalizing problems among youth with and without ADHD.Journal: NeuroImage. ClinicalIn common: broom, cowplot, ggpubr, 2 other tools, depression
- [9] doi:10.1002/hbm.70605 [code]
- BrainEnrich: Revealing Biological Insights for Imaging-Derived Phenotypes Through Transcriptomic Enrichment.Journal: Human brain mappingIn common: broom, cowplot, ggpubr, 2 other tools, depression
- [10] doi:10.1038/s41467-026-73865-9 [code]
- Histamine shapes the neurocomputational dynamics of human learning.Journal: Nature communicationsIn common: broom, cowplot, ggpubr, 2 other tools, cognitive
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 3 repositories of the authors' code, each at its verified commit and with its license, 86 scripts, and 6 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:d5d3fe574e944086…
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
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
