--- title: "Allometric, Endocrine, and Scanner Heterogeneity in Structural and Resting-State Neuroimaging of Gender Identity: A Hierarchical Bayesian Multivariate Meta-Analysis with Latent Covariate Imputation" author: "Christopher \"Topher\" Duguay (ORCID: 0009-0006-8693-6839, University of Manitoba)" date: "2026-11-02" bibliography: trans_neuro_meta.bib format: html: toc: true code-fold: false theme: cosmo execute: eval: false warning: false --- # 1. Methodological Context Primary structural magnetic resonance imaging (`sMRI`), diffusion tensor imaging (`DTI`), and resting-state functional MRI (`rs-fMRI`) investigations of gender identity face three coupled statistical limitations: 1. **Allometric and Endocrine Confounding:** Primary studies inconsistently adjust for **Total Intracranial Volume (`TIV`)** [@eliot2021dimorphism] and **Gender-Affirming Hormone Therapy (`GAHT`)** [@mueller2017smri; @spizzirri2018volumes]. 2. **Incomplete Open Demographic Reporting:** Open-access records report exact subgroup ages for $31/35$ ($88.6\%$) regional contrasts ($\mu = 26.85$ years, $\mathrm{SD} = 4.66$ years), whereas $4/35$ ($11.4\%$) contrasts in subscription-access reports [@mueller2017smri; @uribe2020networks] omit subgroup-disaggregated mean ages in open abstracts and data descriptors. 3. **Crossed Scanner and Regional Dependence:** Treating correlated multi-ROI contrasts extracted from small single-site cohorts ($N = 10\text{--}54$) as independent observations conflates site/scanner variance ($\sigma_{\mathrm{study}}$) with anatomical localization ($\sigma_{\mathrm{region}}$) [@button2013power; @gelman2014beyond]. Across $k = 35$ verified regional contrasts spanning $K = 11$ clinical cohorts ($12$ primary articles [@rametti2011ftm; @rametti2011mtf; @savic2011dimorphism; @simon2013grey; @ku2013axis; @kranz2014whitematter; @hahn2015networks; @hoekzema2015volumes; @mueller2017smri; @burke2017connections; @spizzirri2018volumes; @uribe2020networks]) and $J = 18$ brain regions, we estimate a joint hierarchical Bayesian multivariate meta-regression in `CmdStan 2.39.0` [@carpenter2017stan] via `brms 2.23.0` [@buerkner2017brms]. --- # 2. Data Preparation (`trans_empirical_data.csv`) ```{r setup, message=FALSE, warning=FALSE} library(brms) library(cmdstanr) library(dplyr) library(posterior) library(ggplot2) set.seed(42) raw_data <- read.csv("trans_empirical_data.csv", stringsAsFactors = FALSE) age_obs_mean <- mean(raw_data$mean_age, na.rm = TRUE) age_obs_sd <- sd(raw_data$mean_age, na.rm = TRUE) data <- raw_data |> mutate( Age_z = (mean_age - age_obs_mean) / age_obs_sd, contrast_type = as.factor(contrast_type), study_id = as.factor(study_id), region_name = as.factor(region_name), tiv_controlled = as.numeric(tiv_controlled), gaht_controlled = as.numeric(gaht_controlled) ) ``` --- # 3. Joint Multivariate `brms` + `mi()` Model and Prior Sensitivity ```{r model_fit} meta_formula <- bf( yi | se(sei) ~ 0 + Intercept + contrast_type + tiv_controlled + gaht_controlled + mi(Age_z) + (1 | study_id) + (1 | region_name) ) + bf(Age_z | mi() ~ 1) + set_rescor(FALSE) prior_primary <- c( prior(normal(0, 0.5), class = "b", resp = "yi"), prior(student_t(3, 0, 1), class = "sd", resp = "yi", lb = 0) ) prior_sensitivity <- c( prior(normal(0, 1.0), class = "b", resp = "yi"), prior(student_t(3, 0, 1), class = "sd", resp = "yi", lb = 0) ) fit_primary <- brm( formula = meta_formula, data = data, prior = prior_primary, sample_prior = "yes", chains = 4, cores = 4, iter = 4000, warmup = 2000, control = list(adapt_delta = 0.99, max_treedepth = 12), backend = "cmdstanr", seed = 42 ) fit_sens <- brm( formula = meta_formula, data = data, prior = prior_sensitivity, sample_prior = "yes", chains = 4, cores = 4, iter = 4000, warmup = 2000, control = list(adapt_delta = 0.99, max_treedepth = 12), backend = "cmdstanr", seed = 42 ) ``` --- # 4. Live `CmdStan 2.39.0` Posterior Results (`ROPE = [-0.10, +0.10]`) Across $8,000$ post-warmup NUTS draws (`0` divergent transitions, $\max \widehat{R} = 1.0019$, $\min \mathrm{Bulk\ ESS} = 4,010.1$ in the primary model; `0` divergences, $\max \widehat{R} = 1.0018$, $\min \mathrm{Bulk\ ESS} = 3,390.6$ in the $\mathcal{N}(0, 1.0)$ sensitivity model): | Parameter / Component | Primary Mean ($d$) | Primary 95% CrI | % in ROPE `[-0.1, 0.1]` | $p_{\mathrm{Bayes}}$ | Sensitivity $\mathcal{N}(0, 1.0)$ Mean [95% CrI] | | :--- | :---: | :---: | :---: | :---: | :---: | | **`Intercept` (`FtM vs Gender Identity`)** | `+0.0298` | `[-0.7762, +0.8374]` | `19.49%` | `0.9375` | `+0.1243 [-1.3700, +1.6004]` | | **`Trans vs Gender Identity` ($\beta$)** | `+0.1021` | `[-0.5095, +0.7065]` | `24.46%` | `0.7332` | `+0.0402 [-0.9843, +1.0912]` | | **`Trans vs Natal Sex` ($\beta$)** | `-0.2706` | `[-0.8856, +0.3280]` | `17.20%` | `0.3802` | `-0.3459 [-1.3780, +0.6900]` | | **Adjusted Cell: `Trans vs Gender Identity`** | `+0.1227` | `[-0.5457, +0.8098]` | `22.19%` | `0.7152` | `+0.0786 [-0.6542, +0.8506]` | | **Adjusted Cell: `Trans vs Natal Sex`** | `-0.2500` | `[-0.9423, +0.4425]` | `17.84%` | `0.4545` | `-0.3076 [-1.0626, +0.4691]` | | **`mi(Age_z)` Slope** | `-0.1384` | `[-0.5682, +0.2670]` | `32.11%` | `0.5057` | `-0.2121 [-0.7134, +0.2404]` | | **`sd(region_name)` ($J = 18$)** | `0.0977` | `[0.0038, 0.3038]` | `61.11%` | — | `0.0991 [0.0040, 0.3106]` | | **`sd(study_id)` ($K = 11$)** | `1.0656` | `[0.6646, 1.7148]` | `0.00%` | — | `1.0964 [0.6822, 1.7718]` | | **Median Ratio $\sigma_{\mathrm{study}} / \sigma_{\mathrm{region}}$** | `13.34x` (med) | `[3.02, 281.00]` | `0.00%` | — | `13.77x [2.99, 270.47]` | Between-study/scanner heterogeneity accounts for **98.38%** (`95% CrI [90.14%, 100.00%]`, $\Pr(\sigma_{\mathrm{study}} > \sigma_{\mathrm{region}} \mid \mathcal{D}) = 1.0000$) of modeled hierarchical variance [@kruschke2018rope; @mueller2021enigma].