Code supplement to the manuscript: Bayesian modeling disentangles language versus executive control disruption in stroke
This repository contains the code used to process and analyse the data presented in the "Bayesian modeling disentangles language versus executive control disruption in stroke" manuscript. In addition, the repository contains published figures.
Figure 5
Distinct associations of lesion atoms and cognitive factors disentangle language and executive deficits.
All figures used in the articles are in the figures
folder. Findings from the article are based on the analysis scripts in the scripts
folder.
scripts/factor_decomposition.ipynb
uses Factor analysis to decompose behavioral inputs to latent factor variables.scripts/MIMO_estimation.ipynb
is an example of a Bayesian hierarchical model with multiple inputs and multiple outputs (MIMO model).scripts/MIMO_comparison.ipynb
is an analysis script to examine the differences and similarities between MIMO model outputs.scripts/MISO_estimation.ipynb
is an example of a Bayesian hierarchical model with multiple inputs and a single output (MISO model).scripts/MISO_comparison.ipynb
is an analysis script to examine the differences and similarities between MISO model outputs.scripts/language_networks.ipynb
compares extracted maps of brain-wide effect sizes with an established language network.