Predicting emotional valence in autism: a preregistered study in the Bayesian Brain framework.
The 13 matches
- [1] § Method › Procedure ↔ EMBA_PAL-ADHD/PAL-ADHD_supps-ext.Rmd, lines 101–160 · score 0.96 · Lenovo Legion Pro, Lightning eye tracker, Cambridge RS, stable viewing distance, laptop stand, LiveTrack
- [2] § Method › Procedure ↔ EMBA_PAL-ADHD/PAL-ADHD_supps.Rmd, lines 100–151 · score 0.96 · Lenovo Legion Pro, Lightning eye tracker, Cambridge RS, stable viewing distance, laptop stand, LiveTrack
- [3] § Results › Volatility parameters and learning rate updates ↔ EMBA_PAL-ASD/PAL-ASD_results.Rmd, lines 137–272 · score 0.94 · Bayesian ANOVA revealed, interpreted cautiously, interaction log, suboptimal fit, anecdotal evidence, ranked learning rates
- [4] § Results › Volatility parameters and learning rate updates ↔ EMBA_PAL-ASD/PAL-ASD_results.Rmd, lines 99–135 · score 0.91 · explorative Bernoulli model, preregistered cutoff, lending support, inside ROPE, comparable phasic volatility, phasic volatility predicting
- [5] § Results › Model evaluation ↔ EMBA_PAL-ASD/PAL-ASD_supps-rev2.Rmd, lines 117–197 · score 0.69 · behavioural patterns, simulated reaction, oHGF, best fitting, posterior predictive checks, correlated
- [6] § Method › Analysis with Bayesian linear (mixed) models ↔ EMBA_PAL-ASD/PAL-ASD_results.Rmd, lines 99–135 · score 0.65 · highest density interval, Bayes Factors, posterior probabilities, HDI, intercept, favour
- [7] § Method › Hierarchical gaussian filter ↔ EMBA_PAL-ASD/S4_brms-HGF_PAL-ASD.Rmd, lines 581–633 · score 0.65 · cue outcome uncertainty, stimulus surprise, Stimulus uncertainty, Phasic volatility, filter, HGF
- [8] § Method › Hierarchical gaussian filter ↔ EMBA_PAL-ASD/PAL-ASD_supps-rev2.Rmd, lines 841–879 · score 0.65 · cue outcome uncertainty, stimulus surprise, Stimulus uncertainty, Phasic volatility, filter, HGF
- [9] § Method › Analysis with Bayesian linear (mixed) models ↔ EMBA_PAL-ADHD/PAL-ADHD_results.Rmd, lines 8–121 · score 0.64 · Bayes Factors, posterior probabilities, anecdotal, moderate, interval, sum
- [10] § Method › Probabilistic associative learning task: emotion recognition ↔ experiment/taskPAL.m, lines 268–350 · score 0.57 · fixation cross, blocks, duration, window, tone, emotional
- [11] § Results › Model evaluation ↔ EMBA_PAL-ASD/S5_rev1_PAL_ASD.m, lines 129–145 · score 0.56 · RW model, Model identifiability, empirical priors, S5, simulated
- [12] § Method › Sample ↔ EMBA_PAL-ADHD/PAL-ADHD_supps-ext.Rmd, lines 101–160 · score 0.54 · technical difficulties, smaller sample, recruited, suicidality, analysed, ADHD
- [13] § Method › Hierarchical gaussian filter ↔ EMBA_PAL-ASD/PAL-ASD_supps-rev2.Rmd, lines 117–197 · score 0.51 · Rescorla Wagner, oHGF, empirical priors, RW, simulated, preregistered
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 Markdown · 276 lines · 17 KB · GPL-3.0 · 3 matches
- ---
- title: "PAL ASD results"
- author: "I S Plank"
- date: "`r Sys.Date()`"
- output: html_document
- ---
- ```{r setup, include=FALSE}
- ls.packages = c("knitr",# kable
- "ggplot2", # plots
- "brms", # Bayesian lmms
- "bridgesampling", # bridge_sampler
- "tidyverse", # tibble stuff
- "ggpubr", # ggarrange
- "ggrain", # geom_rain
- "bayesplot", # plots for posterior predictive checks
- "SBC", # plots for checking computational faithfulness
- "rstatix", # anova
- "officer", # read_docx
- "effectsize", # interpret_bf
- "BayesFactor",
- "bayestestR" # equivalence_test
- )
- lapply(ls.packages, library, character.only=TRUE)
- # confidence interval functions
- lower_ci = function(var) {
- unname(quantile(var, probs = 0.025))
- }
- upper_ci = function(var) {
- unname(quantile(var, probs = 0.975))
- }
- # function to interpret posterior probabilities
- interpret_PP = function(p) {
- if (p > 0.975) {
- "very strong"
- } else if (p > 0.95) {
- "strong"
- } else if (p > 0.90) {
- "moderate"
- } else if (p > 0.80) {
- "small"
- } else if (p > 0.70) {
- "anecdotal"
- } else {
- "no"
- }
- }
- brms_dir = "./_brms_models"
- # load the models
- m.vol = readRDS(file.path(brms_dir, "m_hgf_vol.rds"))
- m.om3 = readRDS(file.path(brms_dir, "m_hgf_om3.rds"))
- m.ber = readRDS(file.path(brms_dir, "m_hgf_bern.rds"))
- # hypotheses
- h3a = hypothesis(m.vol, "0 < diagnosis1")
- h3b = hypothesis(m.om3, "0 < diagnosis1")
- e = hypothesis(m.ber, "sbe4 > 0", alpha = 0.025)
- # equivalence
- equ.vol = equivalence_test(m.vol)
- equ.om3 = equivalence_test(m.om3)
- equ.ber = equivalence_test(m.ber)
- # get effect sizes (Hedges, 2007)
- df.eff.vol = as_draws_df(m.vol) %>%
- mutate(
- group = -2*b_diagnosis1 / sigma
- ) %>% select(group) %>%
- pivot_longer(cols = everything(), values_to = "estimate") %>%
- group_by(name) %>%
- summarise(
- ci.lo = lower_ci(estimate),
- mean = mean(estimate),
- ci.hi = upper_ci(estimate),
- interpret = interpret_cohens_d(mean)
- )
- df.eff.om3 = as_draws_df(m.om3) %>%
- mutate(
- group = -2*b_diagnosis1 / sigma
- ) %>% select(group) %>%
- pivot_longer(cols = everything(), values_to = "estimate") %>%
- group_by(name) %>%
- summarise(
- ci.lo = lower_ci(estimate),
- mean = mean(estimate),
- ci.hi = upper_ci(estimate),
- interpret = interpret_cohens_d(mean)
- )
- ```
- # Results
- ## Volatility parameters and learning rates
- There was no credible difference between the influence of phasic volatility in autistic and comparison adults (*estimate* = `r round(h3a$hypothesis$Estimate,2)` [`r round(h3a$hypothesis$CI.Lower,2)`, `r round(h3a$hypothesis$CI.Upper,2)`], *posterior probability* = `r round(h3a$hypothesis$Post.Prob*100,2)`%, *δ* = `r round(df.eff.vol$mean, 3)` [`r round(df.eff.vol$ci.lo, 3)`, `r round(df.eff.vol$ci.hi, 3)`], see [!FIGURE 4]), contrasting our hypothesis and previous findings. However, there was `r interpret_PP(h3a$hypothesis$Post.Prob)` evidence in favour of a difference with the posterior probability approaching the preregistered cutoff of 95%, falling slightly short of credible evidence but also not lending support to comparable phasic volatility with only `r round(equ.vol$ROPE_Percentage[2]*100, 2)`% of posterior estimates inside the Region of Practical Equivalence (ROPE, highest density interval (HDI) = [`r round(equ.vol$HDI_low[2], 2)`, `r round(equ.vol$HDI_high[2], 2)`]), suggested by Kruschke [!REF2018] for assessing evidence for equivalence. Similarly, `r interpret_PP(e$hypothesis$Post.Prob)` evidence pointed towards increased phasic volatility predicting ASD in the explorative Bernoulli model, with a posterior probability of `r round(e$hypothesis$Post.Prob*100,2)`% (*estimate* = `r round(e$hypothesis$Estimate,2)` [`r round(e$hypothesis$CI.Lower,2)`, `r round(e$hypothesis$CI.Upper,2)`], inside ROPE = `r round(equ.ber$ROPE_Percentage[5]*100, 2)`%, HDI = [`r round(equ.ber$HDI_low[5], 2)`, `r round(equ.ber$HDI_high[5], 2)`]). Last, there was `r interpret_PP(h3b$hypothesis$Post.Prob)` evidence towards higher environmental tonic volatility in autistic than comparison adults (*estimate* = `r round(h3b$hypothesis$Estimate,2)` [`r round(h3b$hypothesis$CI.Lower,2)`, `r round(h3b$hypothesis$CI.Upper,2)`], *posterior probability* = `r round(h3b$hypothesis$Post.Prob*100,2)`%, *δ* = `r round(df.eff.om3$mean, 3)` [`r round(df.eff.om3$ci.lo, 3)`, `r round(df.eff.om3$ci.hi, 3)`], inside ROPE = `r round(equ.om3$ROPE_Percentage[2]*100, 2)`%, HDI = [`r round(equ.om3$HDI_low[2], 2)`, `r round(equ.om3$HDI_high[2], 2)`]).
- ```{r dat1, include=FALSE}
- # load the models
- m.alpha = readRDS(file.path(brms_dir, "m_hgf_alpha.rds"))
- aov = readRDS(file.path(brms_dir, "aov_alpha.rds"))
- # hypotheses
- h4a = hypothesis(m.alpha, "0 > - diagnosis1 + diagnosis1:level1")
- h4b = hypothesis(m.alpha, "0 < -diagnosis1 - diagnosis1:level1")
- aov.bf = aov@bayesFactor %>% arrange(desc(bf))
- # get effect sizes (Hedges, 2007)
- df.eff.alpha = as_draws_df(m.alpha) %>%
- mutate(
- sumvar = sqrt(sigma^2 + sd_subID__Intercept^2 +
- sd_subID__level1^2 + sd_subID__change1^2),
- group = 2*b_diagnosis1 / sumvar,
- h4a = -(-2*b_diagnosis1 + 2*`b_diagnosis1:level1`) / sumvar,
- h4b = -(-2*b_diagnosis1 - 2*`b_diagnosis1:level1`) / sumvar
- ) %>% select(group, h4a, h4b) %>%
- pivot_longer(cols = everything(), values_to = "estimate") %>%
- group_by(name) %>%
- summarise(
- ci.lo = lower_ci(estimate),
- mean = mean(estimate),
- ci.hi = upper_ci(estimate),
- interpret = interpret_cohens_d(mean)
- )
- ```
- For the model regarding learning rates, posterior predictive checks revealed a suboptimal fit of estimated parameters for the change from volatile to postvolatile phase. Thus, we complemented the examination of the posterior distributions with Bayesian ANOVA of the ranked learning rates. Posterior distributions of the preregistered model showed `r interpret_PP(h4a$hypothesis$Post.Prob)` but not credible evidence for increased learning rate of environmental changes (*estimate* = `r round(h4a$hypothesis$Estimate,2)` [`r round(h4a$hypothesis$CI.Lower,2)`, `r round(h4a$hypothesis$CI.Upper,2)`], *posterior probability* = `r round(h4a$hypothesis$Post.Prob*100,2)`%, *δ* = `r round(df.eff.alpha[df.eff.alpha$name == "h4a",]$mean, 3)` [`r round(df.eff.alpha[df.eff.alpha$name == "h4a",]$ci.lo, 3)`, `r round(df.eff.alpha[df.eff.alpha$name == "h4a",]$ci.hi, 3)`]) and `r interpret_PP(1-h4b$hypothesis$Post.Prob)` evidence *against* the hypothesis of decreased learning rate for cue-outcome associations (*estimate* = `r round(h4b$hypothesis$Estimate,2)` [`r round(h4b$hypothesis$CI.Lower,2)`, `r round(h4b$hypothesis$CI.Upper,2)`], *posterior probability* = `r round(h4b$hypothesis$Post.Prob*100,2)`%, *δ* = `r round(df.eff.alpha[df.eff.alpha$name == "h4b",]$mean, 3)` [`r round(df.eff.alpha[df.eff.alpha$name == "h4b",]$ci.lo, 3)`, `r round(df.eff.alpha[df.eff.alpha$name == "h4b",]$ci.hi, 3)`], see [!Figure 5]). The Bayesian ANOVA revealed almost identical fit for two models, both containing the predictors level and change with one of them also including their interaction (without interaction log(*BF*) = `r round(aov.bf$bf[1],2)`, with interaction log(*BF*) = `r round(aov.bf$bf[2],2)`). However, there was only anecdotal evidence in favour of these two models compared to the model with the third-best fit which additionally included the predictor group (log(*BF*) = `r round(aov.bf$bf[3],2)`). Thus, all results regarding the learning rates should be interpreted cautiously.
- ## Reaction times, pupil sizes and accuracies
- ```{r dat2, include=FALSE}
- m.pal = readRDS(file.path(brms_dir, "m_pal.rds"))
- m.pup = readRDS(file.path(brms_dir, "m_pup.rds"))
- aov.acc = readRDS(file.path(brms_dir, "aov_acc.rds"))
- bf.acc = aov.acc@bayesFactor %>% arrange(desc(bf))
- # hypotheses
- h1b = hypothesis(m.pal, "0 < diagnosis1:expected1")
- h1d.1 = hypothesis(m.pal, "diagnosis1:phase1 - diagnosis1:phase2 < 0")
- h1d.2 = hypothesis(m.pal, "2*diagnosis1:phase1 + 4*diagnosis1:phase2 < 0")
- e2.1 = hypothesis(m.pal, "0 < -2*expected1", alpha = 0.025)
- e2.6 = hypothesis(m.pal, "0 < -2*difficulty1 - difficulty2", alpha = 0.025)
- h2a = hypothesis(m.pup, "0 < diagnosis1:expected1")
- # create accuracies dataframe
- load("../data/PAL-ASD_data.RData")
- df.acc = df.tsk %>% filter(expected != "neutral") %>% droplevels() %>%
- group_by(subID, diagnosis, phase, expected, difficulty) %>%
- summarise(acc = mean(acc)*100)
- df.diagnosis = df.acc %>%
- group_by(diagnosis) %>%
- summarise(mean_accuracy = mean(acc, na.rm = T),
- sd_accuracy = sd(acc, na.rm = T))
- df.expected = df.acc %>%
- group_by(expected) %>%
- summarise(mean_accuracy = mean(acc, na.rm = T),
- sd_accuracy = sd(acc, na.rm = T))
- df.difficulty = df.acc %>%
- group_by(difficulty) %>%
- summarise(mean_accuracy = mean(acc, na.rm = T),
- sd_accuracy = sd(acc, na.rm = T))
- ## extract predicted differences in ms instead of log data
- df.new = df.tsk %>% filter(expected != "neutral") %>% droplevels() %>%
- select(diagnosis, phase, expected, difficulty) %>%
- distinct() %>%
- mutate(
- condition = paste(diagnosis, phase, expected, difficulty, sep = "_")
- )
- df.ms = as.data.frame(
- fitted(m.pal, summary = F,
- newdata = df.new %>% select(diagnosis, phase, expected, difficulty),
- re_formula = NA))
- colnames(df.ms) = df.new$condition
- # calculate our difference columns
- df.ms = df.ms %>%
- mutate(
- COMP_unexp_exp = rowMeans(across(matches("COMP_.*_unexpected_.*"))) -
- rowMeans(across(matches("COMP_.*_expected_.*"))),
- ASD_unexp_exp = rowMeans(across(matches("ASD_.*_unexpected_.*"))) -
- rowMeans(across(matches("ASD_.*_expected_.*"))),
- `h1b_COMP-ASD unexpected-expected` = COMP_unexp_exp - ASD_unexp_exp,
- `h1d_ASD-COMP volatile-prevolatile` =
- (rowMeans(across(matches("ASD_volatile_.*"))) - rowMeans(across(matches("ASD_prevolatile_.*")))) - (rowMeans(across(matches("COMP_volatile_.*"))) - rowMeans(across(matches("COMP_prevolatile_.*")))),
- `h1d_ASD-COMP postvolatile-volatile` =
- (rowMeans(across(matches("ASD_postvolatile_.*"))) - rowMeans(across(matches("ASD_volatile_.*")))) - (rowMeans(across(matches("COMP_postvolatile_.*"))) - rowMeans(across(matches("COMP_volatile_.*")))),
- `e21_unexpected-expected` = rowMeans(across(matches(".*_unexpected_.*"))) -
- rowMeans(across(matches(".*_expected_.*"))),
- `e26_difficult-easy` = rowMeans(across(matches(".*_difficult"))) -
- rowMeans(across(matches(".*_easy")))
- )
- equ.pal = equivalence_test(df.ms %>% select(starts_with("h")),
- range = rope_range(m.pal))
- df.eff.pal = as_draws_df(m.pal) %>%
- mutate(across(starts_with("sd")|starts_with("sigma"), ~.^2)) %>%
- mutate(
- sumvar = sqrt(rowSums(select(., starts_with("sd")|starts_with("sigma")))),
- h1b = 4*`b_diagnosis1:expected1` / sumvar,
- h1d.1 = 2*(`b_diagnosis1:phase1` - `b_diagnosis1:phase2`) / sumvar,
- h1d.2 = 2*(`b_diagnosis1:phase1` + 2*`b_diagnosis1:phase2`) / sumvar,
- e.exp = 2*b_expected1 / sumvar,
- e.dif = -(-2*b_difficulty1 - b_difficulty2) / sumvar
- ) %>% select(starts_with("e.")|starts_with("h")) %>%
- pivot_longer(cols = everything(), values_to = "estimate") %>%
- group_by(name) %>%
- summarise(
- ci.lo = lower_ci(estimate),
- mean = mean(estimate),
- ci.hi = upper_ci(estimate),
- interpret = interpret_cohens_d(mean)
- )
- # pup stuff
- df.new = m.pup$data %>%
- select(diagnosis, expected, rts) %>%
- distinct() %>%
- mutate(
- condition = paste(diagnosis, expected, rts, sep = "_")
- )
- df.ms = as.data.frame(
- fitted(m.pup, summary = F,
- newdata = df.new %>% select(diagnosis, expected, rts),
- re_formula = NA))
- colnames(df.ms) = df.new$condition
- # calculate our difference columns
- df.ms = df.ms %>%
- mutate(
- COMP_expectancy = rowMeans(across(matches("COMP_expected_.*"))) -
- rowMeans(across(matches("COMP_unexpected_.*"))),
- ASD_expectancy = rowMeans(across(matches("ASD_expected_.*"))) -
- rowMeans(across(matches("ASD_unexpected_.*"))),
- h2a = COMP_expectancy - ASD_expectancy
- )
- equ.pup = equivalence_test(df.ms %>% select(starts_with("e_") | starts_with("h")),
- range = rope_range(m.pup))
- df.eff.pup = as_draws_df(m.pup) %>%
- mutate(
- sumvar = sqrt(sigma^2 + sd_subID__Intercept^2),
- h2a = 4*`b_diagnosis1:expected1` / sumvar
- ) %>% select(starts_with("e.")|starts_with("h")) %>%
- pivot_longer(cols = everything(), values_to = "estimate") %>%
- group_by(name) %>%
- summarise(
- ci.lo = lower_ci(estimate),
- mean = mean(estimate),
- ci.hi = upper_ci(estimate),
- interpret = interpret_cohens_d(mean)
- )
- ```
- There was no credible evidence for differences between autistic and comparison adults with regards to the effect of expectancy (*estimate* = `r round(h1b$hypothesis$Estimate,2)` [`r round(h1b$hypothesis$CI.Lower,2)`, `r round(h1b$hypothesis$CI.Upper,2)`], *posterior probability* = `r round(h1b$hypothesis$Post.Prob*100,2)`%, *δ* = `r round(df.eff.pal[df.eff.pal$name == "h1b",]$mean, 3)` [`r round(df.eff.pal[df.eff.pal$name == "h1b",]$ci.lo, 3)`, `r round(df.eff.pal[df.eff.pal$name == "h1b",]$ci.hi, 3)`], inside ROPE = `r round(equ.pal$ROPE_Percentage[1]*100, 2)`%, HDI = [`r round(equ.pal$HDI_low[1], 2)`, `r round(equ.pal$HDI_high[1], 2)`], see [!Figure 1]) or transition effects (prevolatile to volatile: *estimate* = `r round(h1d.1$hypothesis$Estimate,2)` [`r round(h1d.1$hypothesis$CI.Lower,2)`, `r round(h1d.1$hypothesis$CI.Upper,2)`], *posterior probability* = `r round(h1d.1$hypothesis$Post.Prob*100,2)`%, *δ* = `r round(df.eff.pal[df.eff.pal$name == "h1d.1",]$mean, 3)` [`r round(df.eff.pal[df.eff.pal$name == "h1d.1",]$ci.lo, 3)`, `r round(df.eff.pal[df.eff.pal$name == "h1d.1",]$ci.hi, 3)`], inside ROPE = `r round(equ.pal$ROPE_Percentage[2]*100, 2)`%, HDI = [`r round(equ.pal$HDI_low[2], 2)`, `r round(equ.pal$HDI_high[2], 2)`]; volatile to postvolatile: *estimate* = `r round(h1d.2$hypothesis$Estimate,2)` [`r round(h1d.2$hypothesis$CI.Lower,2)`, `r round(h1d.2$hypothesis$CI.Upper,2)`], *posterior probability* = `r round(h1d.2$hypothesis$Post.Prob*100,2)`%, *δ* = `r round(df.eff.pal[df.eff.pal$name == "h1d.2",]$mean, 3)` [`r round(df.eff.pal[df.eff.pal$name == "h1d.2",]$ci.lo, 3)`, `r round(df.eff.pal[df.eff.pal$name == "h1d.2",]$ci.hi, 3)`], inside ROPE = `r round(equ.pal$ROPE_Percentage[3]*100, 2)`%, HDI = [`r round(equ.pal$HDI_low[3], 2)`, `r round(equ.pal$HDI_high[3], 2)`]) based on reaction times. Similarly, there was `r interpret_PP(h2a$hypothesis$Post.Prob)` credible difference in the effect of expectancy on pupil sizes in autistic compared to non-autistic adults (*estimate* = `r round(h2a$hypothesis$Estimate,2)` [`r round(h2a$hypothesis$CI.Lower,2)`, `r round(h2a$hypothesis$CI.Upper,2)`], *posterior probability* = `r round(h2a$hypothesis$Post.Prob*100,2)`%, *δ* = `r round(df.eff.pup[df.eff.pup$name == "h2a",]$mean, 3)` [`r round(df.eff.pup[df.eff.pup$name == "h2a",]$ci.lo, 3)`, `r round(df.eff.pup[df.eff.pup$name == "h2a",]$ci.hi, 3)`]), in contrast to our hypothesis. Across groups, there was `r interpret_PP(e2.1$hypothesis$Post.Prob)` evidence that expected trials led to faster responses than unexpected trials (*estimate* = `r round(e2.1$hypothesis$Estimate,2)` [`r round(e2.1$hypothesis$CI.Lower,2)`, `r round(e2.1$hypothesis$CI.Upper,2)`], *posterior probability* = `r round(e2.1$hypothesis$Post.Prob*100,2)`%, *δ* = `r round(df.eff.pal[df.eff.pal$name == "e.exp",]$mean, 3)` [`r round(df.eff.pal[df.eff.pal$name == "e.exp",]$ci.lo, 3)`, `r round(df.eff.pal[df.eff.pal$name == "e.exp",]$ci.hi, 3)`]) and easy expressions led to faster responses than difficult expressions (*estimate* = `r round(e2.6$hypothesis$Estimate,2)` [`r round(e2.6$hypothesis$CI.Lower,2)`, `r round(e2.6$hypothesis$CI.Upper,2)`], *posterior probability* = `r round(e2.6$hypothesis$Post.Prob*100,2)`%, *δ* = `r round(df.eff.pal[df.eff.pal$name == "e.dif",]$mean, 3)` [`r round(df.eff.pal[df.eff.pal$name == "e.dif",]$ci.lo, 3)`, `r round(df.eff.pal[df.eff.pal$name == "e.dif",]$ci.hi, 3)`]), suggesting that our task manipulations were successful.
- Accuracies were generally high, with a grand average of `r round(mean(df.acc$acc),1)`% accurate responses across diagnostic groups. An explorative Bayesian ANOVA of the ranked accuracies revealed influences of group, expectancy and difficulty but no interaction effects (log(*BF*) = `r round(bf.acc$bf[1],2)`). Accuracies were higher in the comparison than the autistic group (ASD: `r round(df.diagnosis[df.diagnosis$diagnosis == "ASD",]$mean_accuracy,1)` ± `r round(df.diagnosis[df.diagnosis$diagnosis == "ASD",]$sd_accuracy,1)`%; COMP: `r round(df.diagnosis[df.diagnosis$diagnosis == "COMP",]$mean_accuracy,1)` ± `r round(df.diagnosis[df.diagnosis$diagnosis == "COMP",]$sd_accuracy,1)`%) and in the expected than the unexpected trials (expected: `r round(df.expected[df.expected$expected == "expected",]$mean_accuracy,1)` ± `r round(df.expected[df.expected$expected == "expected",]$sd_accuracy,1)`%; unexpected: `r round(df.expected[df.expected$expected == "unexpected",]$mean_accuracy,1)` ± `r round(df.expected[df.expected$expected == "unexpected",]$sd_accuracy,1)`%). Furthermore, accuracies were lower in the difficult condition (easy: `r round(df.difficulty[df.difficulty$difficulty == "easy",]$mean_accuracy,1)` ± `r round(df.difficulty[df.difficulty$difficulty == "easy",]$sd_accuracy,1)`%; hard: `r round(df.difficulty[df.difficulty$difficulty == "difficult",]$mean_accuracy,1)` ± `r round(df.difficulty[df.difficulty$difficulty == "difficult",]$sd_accuracy,1)`%).
PAL-ASD_results.Rmd at commit d399a35, under GPL-3.0 · at the source
Overview
- Department of Psychiatry and Psychotherapy, LMU University Hospital, LMU Medizin, Ludwig-Maximilians-Universität München,Nußbaumstraße 7, Munich, 80336 Germany
- Department of Sociology, Faculty of Behavioral and Social Sciences, University of Groningen,Grote Rozenstraat 1/2, Groningen, 9712 TS Netherlands
- Department of Psychology, Faculty of Psychology and Neuroscience, Maastricht University,Universiteitssingel 40, Maastricht, 6229 ER Netherlands
- Department of Psychology, LMU Munich,Leopoldstr. 13, 80802 Munich, Germany
- NeuroImaging Core Unit Munich (NICUM), LMU Munich,Nußbaumstraße 7, Munich, 80336 Germany
Abstract
Background: Autism spectrum disorder (ASD) affects social interaction, communication and behavioural flexibility. Recent theories grounded in the Bayesian Brain Framework propose that autistic individuals process environmental uncertainty differently, overweighting volatility when updating predictions about the world. However, the robustness of these predictive processing differences and their relevance to core symptoms remains unclear.
Methods: Lawson and colleagues [1] reported a tendency to overestimate environmental volatility in autistic adults based on belief states extracted using a Hierarchical Gaussian Filter. We extended their paradigm to a domain central to the autistic experience: rather than distinguishing houses from faces, participants detected valence in emotional facial expressions. Preregistered hypotheses were evaluated using Bayesian linear mixed models based on data of 22 autistic and 22 non-autistic participants.
Results: Despite using an identical computational model to extract belief states, we did not find robust differences between autistic and non-autistic adults, though autistic participants showed a non-credible trend towards increased processing of phasic volatility. Largely comparable probabilistic associative learning was also reflected in response times and pupil sizes.
Limitations: While participants reacted faster to expected than unexpected trials in the beginning, this effect decreased over the course of the experiment; thus, possibly indicating that the individual blocks of stable cue-outcome associations were too short.
Conclusions: We were unable to find credible differences in environmental volatility and learning rate updates using a task designed to probe a key autistic difficulty, facial emotion recognition. The current results call into question the generalisability and clinical relevance of prior findings.
Supplementary Information: The online version contains supplementary material available at 10.1186/
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 13 matches between paragraphs and lines of code.
IreneSophia/EMBA_PAL
d399a3524c0e563706de2ff0bfc0969d4b122c07, 24 July 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
123 files
- EMBA_HGF/
models/ , MATLAB, 279 linesemba_ehgf_binary_pu_tbt. m - EMBA_HGF/
models/ , MATLAB, 213 linesemba_ehgf_binary_pu_tbt_ config.m - EMBA_HGF/
models/ , MATLAB, 28 linesemba_ehgf_binary_pu_tbt_ namep.m - EMBA_HGF/
models/ , MATLAB, 32 linesemba_ehgf_binary_pu_tbt_ transp.m - EMBA_HGF/
models/ , MATLAB, 212 linesemba_hgf_2levels_binary_ pu_tbt_config.m - EMBA_HGF/
models/ , MATLAB, 286 linesemba_hgf_binary_pu_tbt.m - EMBA_HGF/
models/ , MATLAB, 212 linesemba_hgf_binary_pu_tbt_c onfig.m - EMBA_HGF/
models/ , MATLAB, 27 linesemba_hgf_binary_pu_tbt_n amep.m - EMBA_HGF/
models/ , MATLAB, 31 linesemba_hgf_binary_pu_tbt_t ransp.m - EMBA_HGF/
models/ , MATLAB, 81 linesemba_logrt_linear_binary _A.m - EMBA_HGF/
models/ , MATLAB, 83 linesemba_logrt_linear_binary _ABC.m - EMBA_HGF/
models/ , MATLAB, 86 linesemba_logrt_linear_binary _ABC_config.m - EMBA_HGF/
models/ , MATLAB, 20 linesemba_logrt_linear_binary _ABC_namep.m - EMBA_HGF/
models/ , MATLAB, 69 linesemba_logrt_linear_binary _ABC_sim.m - EMBA_HGF/
models/ , MATLAB, 28 linesemba_logrt_linear_binary _ABC_transp.m - EMBA_HGF/
models/ , MATLAB, 82 linesemba_logrt_linear_binary _AC.m - EMBA_HGF/
models/ , MATLAB, 80 linesemba_logrt_linear_binary _AC_config.m - EMBA_HGF/
models/ , MATLAB, 19 linesemba_logrt_linear_binary _AC_namep.m - EMBA_HGF/
models/ , MATLAB, 68 linesemba_logrt_linear_binary _AC_sim.m - EMBA_HGF/
models/ , MATLAB, 26 linesemba_logrt_linear_binary _AC_transp.m - EMBA_HGF/
models/ , MATLAB, 74 linesemba_logrt_linear_binary _A_config.m - EMBA_HGF/
models/ , MATLAB, 18 linesemba_logrt_linear_binary _A_namep.m - EMBA_HGF/
models/ , MATLAB, 67 linesemba_logrt_linear_binary _A_sim.m - EMBA_HGF/
models/ , MATLAB, 24 linesemba_logrt_linear_binary _A_transp.m - EMBA_HGF/
models/ , MATLAB, 81 linesemba_logrt_linear_binary _B.m - EMBA_HGF/
models/ , MATLAB, 82 linesemba_logrt_linear_binary _BC.m - EMBA_HGF/
models/ , MATLAB, 80 linesemba_logrt_linear_binary _BC_config.m - EMBA_HGF/
models/ , MATLAB, 19 linesemba_logrt_linear_binary _BC_namep.m - EMBA_HGF/
models/ , MATLAB, 68 linesemba_logrt_linear_binary _BC_sim.m - EMBA_HGF/
models/ , MATLAB, 26 linesemba_logrt_linear_binary _BC_transp.m - EMBA_HGF/
models/ , MATLAB, 74 linesemba_logrt_linear_binary _B_config.m - EMBA_HGF/
models/ , MATLAB, 18 linesemba_logrt_linear_binary _B_namep.m - EMBA_HGF/
models/ , MATLAB, 67 linesemba_logrt_linear_binary _B_sim.m - EMBA_HGF/
models/ , MATLAB, 24 linesemba_logrt_linear_binary _B_transp.m - EMBA_HGF/
models/ , MATLAB, 81 linesemba_logrt_linear_binary _C.m - EMBA_HGF/
models/ , MATLAB, 74 linesemba_logrt_linear_binary _C_config.m - EMBA_HGF/
models/ , MATLAB, 18 linesemba_logrt_linear_binary _C_namep.m - EMBA_HGF/
models/ , MATLAB, 67 linesemba_logrt_linear_binary _C_sim.m - EMBA_HGF/
models/ , MATLAB, 24 linesemba_logrt_linear_binary _C_transp.m - EMBA_HGF/
models/ , MATLAB, 55 linesemba_logrt_linear_binary _SUR.m - EMBA_HGF/
models/ , MATLAB, 62 linesemba_logrt_linear_binary _SUR_config.m - EMBA_HGF/
models/ , MATLAB, 16 linesemba_logrt_linear_binary _SUR_namep.m - EMBA_HGF/
models/ , MATLAB, 45 linesemba_logrt_linear_binary _SUR_sim.m - EMBA_HGF/
models/ , MATLAB, 20 linesemba_logrt_linear_binary _SUR_transp.m - EMBA_HGF/
workflow/ , MATLAB, 43 linesaccumulateForPlotting.m - EMBA_HGF/
workflow/ , MATLAB, 32 linesaddLawModelSpace.m - EMBA_HGF/
workflow/ , MATLAB, 134 linescheckModelIdentifiabilit y.m - EMBA_HGF/
workflow/ , MATLAB, 80 linescheckParameterRecovery.m - EMBA_HGF/
workflow/ , MATLAB, 69 linescompareModels.m - EMBA_HGF/
workflow/ , MATLAB, 110 linescomputeEmpiricalPriors.m - EMBA_HGF/
workflow/ , MATLAB, 106 linesemba_ehgf_binary_pu_tbt_ plotTraj.m - EMBA_HGF/
workflow/ , MATLAB, 111 linesextractHGFcsv.m - EMBA_HGF/
workflow/ , MATLAB, 47 linesfitData.m - EMBA_HGF/
workflow/ , MATLAB, 183 linesfitDataALT.m - EMBA_HGF/
workflow/ , MATLAB, 54 linesfitPilotData.m - EMBA_HGF/
workflow/ , MATLAB, 57 linesfitSimData.m - EMBA_HGF/
workflow/ , MATLAB, 76 linesfitSimDataAppend.m - EMBA_HGF/
workflow/ , MATLAB, 58 linesinvertModel.m - EMBA_HGF/
workflow/ , MATLAB, 52 linesinvertModelPilot.m - EMBA_HGF/
workflow/ , MATLAB, 67 linesinvertModelSim.m - EMBA_HGF/
workflow/ , MATLAB, 54 linesmodelNames.m - EMBA_HGF/
workflow/ , MATLAB, 173 linesplotAggLogRTsModel.m - EMBA_HGF/
workflow/ , MATLAB, 166 linesplotAggLogRTsModelPhases .m - EMBA_HGF/
workflow/ , MATLAB, 160 linesplotAverageRegressors.m - EMBA_HGF/
workflow/ , MATLAB, 176 linesplotEmpiricalPriors.m - EMBA_HGF/
workflow/ , MATLAB, 193 linesplotInitialPriorsPredDen s.m - EMBA_HGF/
workflow/ , MATLAB, 109 linesplotLogRTsModel.m - EMBA_HGF/
workflow/ , MATLAB, 116 linesplotModelIdentifiability .m - EMBA_HGF/
workflow/ , MATLAB, 143 linesplotMultiLogRTsModel.m - EMBA_HGF/
workflow/ , MATLAB, 88 linesplotParameterRecovery.m - EMBA_HGF/
workflow/ , MATLAB, 83 linesplotSimData.m - EMBA_HGF/
workflow/ , MATLAB, 92 linesplotSimRec.m - EMBA_HGF/
workflow/ , MATLAB, 66 linesplotTrajForMain.m - EMBA_HGF/
workflow/ , MATLAB, 170 linesplotVarLogRTsModel.m - EMBA_HGF/
workflow/ , MATLAB, 104 linessetupModelSpace.m - EMBA_HGF/
workflow/ , MATLAB, 35 linessetupOpt_and_randSeed.m - EMBA_HGF/
workflow/ , MATLAB, 150 linessimModels.m - EMBA_HGF/
workflow/ , MATLAB, 152 linessimModelsAppend.m - EMBA_HGF/
workflow/ , MATLAB, 69 linessimPostRT.m - EMBA_HGF/
workflow/ , MATLAB, 54 linesupdateModSpace.m - EMBA_PAL-ADHD/
PAL-ADHD_results.Rmd , R, 267 lines, 1 match - EMBA_PAL-ADHD/
PAL-ADHD_supps-ext.Rmd , R, 425 lines, 2 matches - EMBA_PAL-ADHD/
PAL-ADHD_supps.Rmd , R, 416 lines, 1 match - EMBA_PAL-ADHD/
S1_brms-rt_PAL-ADHD.Rmd , R, 1,206 lines - EMBA_PAL-ADHD/
S2_brms-pup_PAL-ADHD.Rmd , R, 358 lines - EMBA_PAL-ADHD/
S3_HGF_PAL_ADHD.m , MATLAB, 190 lines - EMBA_PAL-ADHD/
S4_brms-HGF_PAL-ADHD.Rmd , R, 979 lines - EMBA_PAL-ADHD/
S5_ggdmc-DDM_PAL-ADHD.Rm , R, 920 linesd - EMBA_PAL-ADHD/
S6_add_PAL_ADHD.m , MATLAB, 217 lines - EMBA_PAL-ADHD/
additionalScripts/ , R, 287 linesEDTstuff.Rmd.R - EMBA_PAL-ADHD/
additionalScripts/ , R, 128 linesdraftDDM-exp.R - EMBA_PAL-ADHD/
analysePAL-ADHD_ET-LMMs. , Python, 108 linespy - EMBA_PAL-ADHD/
modelNames_PAL_ADHD.m , MATLAB, 52 lines - EMBA_PAL-ADHD/
plotPPC.R , R, 208 lines - EMBA_PAL-ASD/
PAL-ASD_results.Rmd , R, 276 lines, 3 matches - EMBA_PAL-ASD/
PAL-ASD_supps-rev2.Rmd , R, 926 lines, 3 matches - EMBA_PAL-ASD/
PAL-ASD_supps.Rmd , R, 1,006 lines - EMBA_PAL-ASD/
S1_brms-rt_PAL-ASD.Rmd , R, 867 lines - EMBA_PAL-ASD/
S2_brms-pup_PAL-ASD.Rmd , R, 453 lines - EMBA_PAL-ASD/
S3_HGF_PAL_ASD.m , MATLAB, 193 lines - EMBA_PAL-ASD/
S4_brms-HGF_PAL-ASD.Rmd , R, 894 lines, 1 match - EMBA_PAL-ASD/
S5_rev1_PAL_ASD.m , MATLAB, 222 lines, 1 match - EMBA_PAL-ASD/
analysePAL-ASD_ET-LMMs.p , Python, 114 linesy - EMBA_PAL-ASD/
modelNames_PAL_ASD.m , MATLAB, 49 lines - PAL_simulation-based-cal
ibration.Rmd , R, 1,411 lines - data/
extractData.m , MATLAB, 37 lines - experiment/
EMBA_stimulus-evaluation , R, 375 lines.Rmd - experiment/
taskPAL.m , MATLAB, 350 lines, 1 match - helper/
brms-analyses_PAL-pup_SB , R, 108 linesC.R - helper/
brms-analyses_PAL-upd_SB , R, 103 linesC.R - helper/
brms-analyses_PAL_SBC.R , R, 115 lines - helper/
brms-sens_PAL-upd_SBC.R , R, 66 lines - helper/
createDFdemo.R , R, 100 lines - helper/
createMs.R , R, 66 lines - helper/
fun_bf-sens.R , R, 1,117 lines - helper/
plotPAL_ET.py , Python, 180 lines - prepro/
applyPAL_ET.py , Python, 168 lines - prepro/
preproBV_PAL.R , R, 75 lines - prepro/
prepro_CentraXX.R , R, 314 lines - prepro/
preprocessPAL_ET.py , Python, 388 lines - prepro/
time_series_test_ISP.py , Python, 537 lines - LICENSE, License, 674 lines
- README.md, Text, 51 lines
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;
- 121 scripts, each with its path and the digest of its content;
- 13 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
Datasets cited
Data availability
The datasets generated and analysed during the current study are available on OSF, [https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 6 keywords, 12 MeSH terms, 1 funder, 45 references.
Cite
This paper
Plank, I. S., Pior, A., Yurova, A., Nowak, J., Shi, Z., & Falter-Wagner, C. M. (2026). Predicting emotional valence in autism: a preregistered study in the Bayesian Brain framework. Molecular autism, 17(1), 32. https://
BibTeX
@article{plank2026predic
author = {Plank, Irene Sophia and Pior, Alexandra and Yurova, Anna and Nowak, Julia and Shi, Zhuanghua and Falter-Wagner, Christine M.},
title = {{Predicting emotional valence in autism: a preregistered study in the Bayesian Brain framework}},
journal = {Molecular autism},
year = {2026},
month = jul,
volume = {17},
number = {1},
pages = {32},
publisher = {BMC},
issn = {2040-2392},
doi = {10.1186/
url = {https://
pmid = {42482104},
pmcid = {PMC13435570}
}
RIS
TY - JOUR
AU - Plank, Irene Sophia
AU - Pior, Alexandra
AU - Yurova, Anna
AU - Nowak, Julia
AU - Shi, Zhuanghua
AU - Falter-Wagner, Christine M.
TI - Predicting emotional valence in autism: a preregistered study in the Bayesian Brain framework
T2 - Molecular autism
J2 - Mol Autism
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 32
SN - 2040-2392
PB - BMC
DO - 10.1186/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1186/
"type": "article-journal",
"title": "Predicting emotional valence in autism: a preregistered study in the Bayesian Brain framework",
"container-title": "Molecular autism",
"author": [
{
"family": "Plank",
"given": "Irene Sophia"
},
{
"family": "Pior",
"given": "Alexandra"
},
{
"family": "Yurova",
"given": "Anna"
},
{
"family": "Nowak",
"given": "Julia"
},
{
"family": "Shi",
"given": "Zhuanghua"
},
{
"family": "Falter-Wagner",
"given": "Christine M."
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "32",
"DOI": "10.1186/
"PMID": "42482104",
"PMCID": "PMC13435570",
"ISSN": "2040-2392",
"publisher": "BMC",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
21
]
]
}
}
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.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: BayesFactor, Stan, brms, 8 other tools, 2 references
- [2] doi:10.1038/s44271-026-00431-w [code]
- Alpha power increases spontaneously during a neurofeedback session.Journal: Communications psychologyIn common: BayesFactor, Stan, brms, 7 other tools, cognitive, 2 references
- [3] doi:10.1111/psyp.70285 [code]
- Spontaneous Modulation of Alpha Power During a Neurofeedback Session Without Instructions.Journal: PsychophysiologyIn common: Stan, brms, Psychtoolbox, 6 other tools, 2 references
- [4] doi:10.1038/s41467-026-74565-0 [code]
- The functional neurobiology of dispositions towards negative emotions.Journal: Nature communicationsIn common: BayesFactor, brms, easystats, 8 other tools, cognitive
- [5] doi:10.1038/s41467-026-73865-9 [code]
- Histamine shapes the neurocomputational dynamics of human learning.Journal: Nature communicationsIn common: BayesFactor, brms, rstatix, 8 other tools, cognitive
- [6] doi:10.1523/eneuro.0076-26.2026 [code]
- Exogenously Driven Neural Reactivation of Spatially Matching Visual Working-Memory Contents.Journal: eNeuroIn common: BayesFactor, brms, rstatix, 8 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, brms, reshape2, 9 other tools
- [8] 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, rstatix, easystats, 4 other tools, autism, cognitive, 1 reference
- [9] doi:10.64898/2026.03.02.709173 [code]
- Corpus Callosum Dysgenesis impairs metacognition: evidence from multi-modality and multi-cohort replicationsJournal: bioRxiv (preprint)In common: Stan, brms, easystats, 5 other tools, cognitive
- [10] doi:10.1162/imag.a.1169 [code]
- Diazepam alters the shape of alpha oscillations recorded from human cortex using EEG.Journal: Imaging neuroscience (Cambridge, Mass.)In common: brms, easystats, ggpubr, 6 other tools, 2 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, 121 scripts, and 13 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:f0f345330e65a457…
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.
