OSCR

Race and Ethnicity, Hypertension, and Neuroimaging Markers of Brain Aging: A Causal Mediation Analysis in the HABS-HD Study.

Code ↔ Paper

3 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 3 matches
  1. [1] § Methods › Covariates of Interest ↔ 2. descriptive_11 18 25.Rmd, lines 220–333 · score 0.96 · Cardiovascular disease, Geriatric Depression, medical history, Body mass, intracranial volume, hemoglobin A1c
  2. [2] § Methods › Statistical Analysis › Generating Exposure and Mediator IPWs ↔ 2. descriptive_11 18 25.Rmd, lines 220–333 · score 0.73 · tau PET SUVR, eGFR, amyloid PET, physical activity, diagnosis, glucose
  3. [3] § Methods › Statistical Analysis › Marginal Structural Models ↔ 2. descriptive_11 18 25.Rmd, lines 334–447 · score 0.67 · eGFR, social support, physical activity, diagnoses, depressive, glucose

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 · 738 lines · 31 KB · no license · 3 matches

  1. ---
  2. title: "2. descriptive_02 27 25"
  3. output: html_document
  4. date: "2025-02-27"
  5. ---
  6. # Loading packages
  7. ```{r packages, include = FALSE}
  8. library(haven) # inputting data
  9. library(tidyverse) # data mgmt
  10. library(psych) # easy summary statistics
  11. library(DT) # data tables
  12. library(tableone) # easy table 1
  13. library(kableExtra) # format kable objects
  14. library(naniar) # for missingness
  15. library(survey) # for MSMs
  16. library(nnet) # multinormal regression
  17. library(cobalt) # examining covariate balance
  18. library(gt) # nice tables
  19. library(gtsummary) # nice tables
  20. library(broom) # making output nice
  21. library(sjPlot) # nice cross tabs
  22. library(openxlsx) # outputting excel sheets
  23. library(ggcorrplot) # correlation plots
  24. library(reshape2) # reshaping
  25. library(RColorBrewer) # color pallettes
  26. options(max.print=100000)
  27. ```
  28. ```{css scroll box for code, include = FALSE}
  29. pre {
  30. max-height: 300px;
  31. overflow-y: auto;
  32. }
  33. pre[class] {
  34. max-height: 100px;
  35. }
  36. ```
  37. # Loading data
  38. ```{r data, include = FALSE}
  39. load(file = "./analysis data/causmed.Rdata") # n=3592, v=68
  40. names(causmed) %>% view()
  41. ```
  42. ## Creating time difference variable
  43. With age1 and age2 as the main time variable.
  44. ```{r time diff, include = FALSE}
  45. causmed2 <- causmed %>%
  46. mutate(agediff12 = age_2 - age_1) %>%
  47. mutate(gender_fct = case_when(
  48. gender == 0 ~ "Men",
  49. gender == 1 ~ "Women",
  50. TRUE ~ NA)) %>%
  51. mutate(gender_fct = factor(gender_fct,
  52. levels = c("Men", "Women"))) %>%
  53. mutate(haswmhv2_fct = case_when(
  54. haswmhv2 == 1 ~ "Has WMHV at Visit 2",
  55. haswmhv2 == 0 ~ "No WMHV at Visit 2",
  56. TRUE ~ NA)) %>%
  57. mutate(haswmhv2_fct = factor(haswmhv2_fct,
  58. levels = c("Has WMHV at Visit 2",
  59. "No WMHV at Visit 2"))) %>%
  60. mutate(hasabv2_fct = case_when(
  61. hasabv2 == 1 ~ "Has Amyloid-PET at Visit 2",
  62. hasabv2 == 0 ~ "No Amyloid-PET at Visit 2",
  63. TRUE ~ NA)) %>%
  64. mutate(hasabv2_fct = factor(hasabv2_fct,
  65. levels = c("Has Amyloid-PET at Visit 2",
  66. "No Amyloid-PET at Visit 2"))) %>%
  67. mutate(hasmttau2_fct = case_when(
  68. hasmttauv2 == 1 ~ "Has MTL Tau-PET at Visit 2",
  69. hasmttauv2 == 0 ~ "No MTL Tau-PET at Visit 2",
  70. TRUE ~ NA)) %>%
  71. mutate(hasmttau2_fct = factor(hasmttau2_fct,
  72. levels = c("Has MTL Tau-PET at Visit 2",
  73. "No MTL Tau-PET at Visit 2"))) %>%
  74. mutate(hasctv2_fct = case_when(
  75. hasctv2 == 1 ~ "Has AD meta-ROI CT at Visit 2",
  76. hasctv2 == 0 ~ "No AD meta-ROI CT at Visit 2",
  77. TRUE ~ NA)) %>%
  78. mutate(hasctv2_fct = factor(hasctv2_fct,
  79. levels = c("Has AD meta-ROI CT at Visit 2",
  80. "No AD meta-ROI CT at Visit 2"))) %>%
  81. mutate(icv_1_cm3 = (icv_1/1000)) %>%
  82. mutate(takes_BP_meds = factor(takes_BP_meds,
  83. levels = c(0, 1))) %>%
  84. mutate(has_img1 = case_when(
  85. (hasabv1 == 1 | hasmttauv1 == 1 | hasctv1 == 1 | haswmhv1 == 1) ~ 1,
  86. (hasabv1 == 0 & hasmttauv1 == 0 & hasctv1 == 0 & haswmhv1 == 0) ~ 0,
  87. TRUE ~ NA)) %>%
  88. mutate(has_img2 = case_when(
  89. (hasabv2 == 1 | hasmttauv2 == 1 | hasctv2 == 1 | haswmhv2 == 1) ~ 1,
  90. (hasabv2 == 0 & hasmttauv2 == 0 & hasctv2 == 0 & haswmhv2 == 0) ~ 0,
  91. TRUE ~ NA))
  92. # n=3592, v=76
  93. # checking variables
  94. summary(causmed2$haswmhv2_fct)
  95. summary(causmed2$hasabv2_fct)
  96. summary(causmed2$hasmttau2_fct)
  97. summary(causmed2$hasctv2_fct)
  98. summary(causmed2$icv_1_cm3)
  99. summary(as.factor(causmed2$has_img1))
  100. summary(as.factor(causmed2$has_img2))
  101. ```
  102. # Table 1, with any imaging, by race/ethnicity
  103. ```{r table 1, include = FALSE}
  104. tbl1_img <- causmed2 %>%
  105. filter(has_img2 == 1) %>%
  106. tbl_summary(include = c(# demographics
  107. age_1, gender_fct, agediff12,
  108. # social
  109. edu, hasnoinsurance, income, socsupptot,
  110. # clinical/behavioral variables
  111. smkever, bmi, sbpavg, dbpavg, rapa_1_total,
  112. rapa_2_total, gds_total, takes_BP_meds, has_htn,
  113. # medical history
  114. cdx_dep, cdx_cog, cdx_dyslipid, cdx_cvd, cdx_dm,
  115. # labs
  116. ldl, gluc, a1c, egfr_nonaa, choltot,
  117. apoe4_positivity,
  118. # imaging vars
  119. wmhv_2, absuvr_2, taumedtempsuvr_2, ctmetaroi_2,
  120. icv_1_cm3),
  121. by = ethnicity,
  122. type = list(
  123. age_1 ~ "continuous",
  124. gender_fct ~ "categorical",
  125. edu ~ "continuous",
  126. agediff12 ~ "continuous",
  127. hasnoinsurance ~ "dichotomous",
  128. income ~ "continuous",
  129. socsupptot ~ "continuous",
  130. smkever ~ "dichotomous",
  131. bmi ~ "continuous",
  132. sbpavg ~ "continuous",
  133. dbpavg ~ "continuous",
  134. rapa_1_total ~ "continuous",
  135. rapa_2_total ~ "continuous",
  136. gds_total ~ "continuous",
  137. takes_BP_meds ~ "dichotomous",
  138. has_htn ~ "dichotomous",
  139. cdx_dep ~ "dichotomous",
  140. cdx_cog ~ "dichotomous",
  141. cdx_dyslipid ~ "dichotomous",
  142. cdx_cvd ~ "dichotomous",
  143. cdx_dm ~ "dichotomous",
  144. ldl ~ "continuous",
  145. gluc ~ "continuous",
  146. a1c ~ "continuous",
  147. egfr_nonaa ~ "continuous",
  148. choltot ~ "continuous",
  149. apoe4_positivity ~ "dichotomous",
  150. wmhv_2 ~ "continuous",
  151. absuvr_2 ~ "continuous",
  152. taumedtempsuvr_2 ~ "continuous",
  153. ctmetaroi_2 ~ "continuous",
  154. icv_1_cm3 ~ "continuous"),
  155. value = list(
  156. hasnoinsurance ~ 1,
  157. takes_BP_meds ~ 1,
  158. has_htn ~ 1,
  159. cdx_dep ~ 1,
  160. cdx_cog ~ 1,
  161. cdx_dyslipid ~ 1,
  162. cdx_cvd ~ 1,
  163. cdx_dm ~ 1,
  164. apoe4_positivity ~ 1),
  165. statistic = list(
  166. all_continuous() ~ "{mean} ({sd})",
  167. all_dichotomous() ~ "{n} ({p}%)",
  168. all_categorical() ~ "{n} ({p}%)",
  169. wmhv_2 ~ "{median} ({p25}, {p75})",
  170. absuvr_2 ~ "{median} ({p25}, {p75})",
  171. taumedtempsuvr_2 ~ "{median} ({p25}, {p75})"),
  172. label = list(
  173. age_1 = "Age At Baseline (Years)",
  174. ethnicity = "Race/Ethnicity",
  175. gender_fct = "Sex/Gender",
  176. edu = "Education (Years)",
  177. agediff12 = "Years Between Visit 1 and 2",
  178. hasnoinsurance = "Has No Insurance",
  179. income = "Income (Dollars)",
  180. socsupptot = "Social Support Score",
  181. smkever = "Ever Smoker",
  182. bmi = "Body Mass Index",
  183. sbpavg = "Systolic Blood Pressure (mmHg)",
  184. dbpavg = "Diastolic Blood Pressure (mmHg)",
  185. rapa_1_total = "Rapid Assessment of Physical Activity Score, Aerobic",
  186. rapa_2_total = "Rapid Assessment of Physical Activity Score, Strength and Flexibility",
  187. gds_total = "Geriatric Depression Score",
  188. takes_BP_meds = "Taking Blood Pressure Medications at Baseline",
  189. has_htn = "Hypertension",
  190. cdx_dep = "Depression",
  191. cdx_cog = "Mild Cognitive Impairment",
  192. cdx_dyslipid = "Dyslipidemia",
  193. cdx_cvd = "Cardiovascular Disease",
  194. cdx_dm = "Diabetes",
  195. ldl = "LDL (mg/dL)",
  196. gluc = "Glucose (mg/dL)",
  197. a1c = "Hemoglobin A1c (%)",
  198. egfr_nonaa = "eGFR (non-African American, mL/min/1.73m^2)",
  199. choltot = "Total Cholesterol (mg/dL)",
  200. apoe4_positivity = "APOE4 Allele Positive",
  201. wmhv_2 = "White Matter Hyperintensity Volume (cm^3)",
  202. absuvr_2 = "Global Amyloid-PET SUVR",
  203. taumedtempsuvr_2 = "MTL Tau-PET SUVR",
  204. ctmetaroi_2 = "AD meta-ROI Cortical Thickness (mm)",
  205. icv_1_cm3 = "Intracranial Volume (cm^3)"),
  206. missing = "no")
  207. tbl1_img
  208. tbl1_img %>%
  209. as_gt() %>%
  210. gtsave("./results/tbl1_img.docx")
  211. ```
  212. # Table 1, for those with WMHV at visit 2
  213. ```{r table 1 wmhv, include = FALSE}
  214. tbl1_wmhv <- causmed2 %>%
  215. filter(haswmhv2_fct == "Has WMHV at Visit 2") %>%
  216. tbl_summary(include = c(# demographics
  217. age_1, gender_fct, agediff12,
  218. # social
  219. edu, hasnoinsurance, income, socsupptot,
  220. # clinical/behavioral variables
  221. smkever, bmi, sbpavg, dbpavg, rapa_1_total,
  222. rapa_2_total, gds_total, takes_BP_meds, has_htn,
  223. # medical history
  224. cdx_dep, cdx_cog, cdx_dyslipid, cdx_cvd, cdx_dm,
  225. # labs
  226. ldl, gluc, a1c, egfr_nonaa, choltot,
  227. apoe4_positivity,
  228. # imaging vars
  229. wmhv_2, absuvr_2, taumedtempsuvr_2, ctmetaroi_2,
  230. icv_1_cm3),
  231. by = ethnicity,
  232. type = list(
  233. age_1 ~ "continuous",
  234. gender_fct ~ "categorical",
  235. edu ~ "continuous",
  236. agediff12 ~ "continuous",
  237. hasnoinsurance ~ "dichotomous",
  238. income ~ "continuous",
  239. socsupptot ~ "continuous",
  240. smkever ~ "dichotomous",
  241. bmi ~ "continuous",
  242. sbpavg ~ "continuous",
  243. dbpavg ~ "continuous",
  244. rapa_1_total ~ "continuous",
  245. rapa_2_total ~ "continuous",
  246. gds_total ~ "continuous",
  247. takes_BP_meds ~ "dichotomous",
  248. has_htn ~ "dichotomous",
  249. cdx_dep ~ "dichotomous",
  250. cdx_cog ~ "dichotomous",
  251. cdx_dyslipid ~ "dichotomous",
  252. cdx_cvd ~ "dichotomous",
  253. cdx_dm ~ "dichotomous",
  254. ldl ~ "continuous",
  255. gluc ~ "continuous",
  256. a1c ~ "continuous",
  257. egfr_nonaa ~ "continuous",
  258. choltot ~ "continuous",
  259. apoe4_positivity ~ "dichotomous",
  260. wmhv_2 ~ "continuous",
  261. absuvr_2 ~ "continuous",
  262. taumedtempsuvr_2 ~ "continuous",
  263. ctmetaroi_2 ~ "continuous",
  264. icv_1_cm3 ~ "continuous"),
  265. value = list(
  266. hasnoinsurance ~ 1,
  267. takes_BP_meds ~ 1,
  268. has_htn ~ 1,
  269. cdx_dep ~ 1,
  270. cdx_cog ~ 1,
  271. cdx_dyslipid ~ 1,
  272. cdx_cvd ~ 1,
  273. cdx_dm ~ 1,
  274. apoe4_positivity ~ 1),
  275. statistic = list(
  276. all_continuous() ~ "{mean} ({sd})",
  277. all_dichotomous() ~ "{n} ({p}%)",
  278. all_categorical() ~ "{n} ({p}%)",
  279. wmhv_2 ~ "{median} ({p25}, {p75})",
  280. absuvr_2 ~ "{median} ({p25}, {p75})",
  281. taumedtempsuvr_2 ~ "{median} ({p25}, {p75})"),
  282. label = list(
  283. age_1 = "Age At Baseline (Years)",
  284. gender_fct = "Sex/Gender",
  285. edu = "Education (Years)",
  286. agediff12 = "Years Between Visit 1 and 2",
  287. hasnoinsurance = "Has No Insurance",
  288. income = "Income (Dollars)",
  289. socsupptot = "Social Support Score",
  290. smkever = "Ever Smoker",
  291. bmi = "Body Mass Index",
  292. sbpavg = "Systolic Blood Pressure (mmHg)",
  293. dbpavg = "Diastolic Blood Pressure (mmHg)",
  294. rapa_1_total = "Rapid Assessment of Physical Activity Score, Aerobic",
  295. rapa_2_total = "Rapid Assessment of Physical Activity Score, Strength and Flexibility",
  296. gds_total = "Geriatric Depression Score",
  297. takes_BP_meds = "Taking Blood Pressure Medications at Baseline",
  298. has_htn = "Hypertension",
  299. cdx_dep = "Depression",
  300. cdx_cog = "Mild Cognitive Impairment",
  301. cdx_dyslipid = "Dyslipidemia",
  302. cdx_cvd = "Cardiovascular Disease",
  303. cdx_dm = "Diabetes",
  304. ldl = "LDL (mg/dL)",
  305. gluc = "Glucose (mg/dL)",
  306. a1c = "Hemoglobin A1c (%)",
  307. egfr_nonaa = "eGFR (mL/min/1.73m^2)",
  308. choltot = "Total Cholesterol (mg/dL)",
  309. apoe4_positivity = "APOE4 Allele Positive",
  310. wmhv_2 = "White Matter Hyperintensity Volume (cm^3)",
  311. absuvr_2 = "Global Amyloid-PET SUVR",
  312. taumedtempsuvr_2 = "MTL Tau-PET SUVR",
  313. ctmetaroi_2 = "AD meta-ROI Cortical Thickness (mm)",
  314. icv_1_cm3 = "Intracranial Volume (cm^3)"),
  315. missing = "no")
  316. tbl1_wmhv
  317. # Cross-tab of race/ethnicity and HTN diagnosis among those with WMHV at visit 2
  318. wmhv <- causmed2 %>% filter(haswmhv2 == 1)
  319. tab_xtab(var.row = as.factor(wmhv$has_htn),
  320. var.col = as.factor(wmhv$ethnicity),
  321. show.row.prc = TRUE,
  322. show.col.prc = TRUE,
  323. show.na = TRUE)
  324. ```
  325. # Table 1, for those with amyloid PET at visit 2
  326. ```{r table 1 ab, include = FALSE}
  327. tbl1_ab <- causmed2 %>%
  328. filter(hasabv2_fct == "Has Amyloid-PET at Visit 2") %>%
  329. tbl_summary(include = c(# demographics
  330. age_1, gender_fct, agediff12,
  331. # social
  332. edu, hasnoinsurance, income, socsupptot,
  333. # clinical/behavioral variables
  334. smkever, bmi, sbpavg, dbpavg, rapa_1_total,
  335. rapa_2_total, gds_total, takes_BP_meds, has_htn,
  336. # medical history
  337. cdx_dep, cdx_cog, cdx_dyslipid, cdx_cvd, cdx_dm,
  338. # labs
  339. ldl, gluc, a1c, egfr_nonaa, choltot,
  340. apoe4_positivity,
  341. # imaging vars
  342. wmhv_2, absuvr_2, taumedtempsuvr_2, ctmetaroi_2,
  343. icv_1_cm3),
  344. by = ethnicity,
  345. type = list(
  346. age_1 ~ "continuous",
  347. gender_fct ~ "categorical",
  348. edu ~ "continuous",
  349. agediff12 ~ "continuous",
  350. hasnoinsurance ~ "dichotomous",
  351. income ~ "continuous",
  352. socsupptot ~ "continuous",
  353. smkever ~ "dichotomous",
  354. bmi ~ "continuous",
  355. sbpavg ~ "continuous",
  356. dbpavg ~ "continuous",
  357. rapa_1_total ~ "continuous",
  358. rapa_2_total ~ "continuous",
  359. gds_total ~ "continuous",
  360. takes_BP_meds ~ "dichotomous",
  361. has_htn ~ "dichotomous",
  362. cdx_dep ~ "dichotomous",
  363. cdx_cog ~ "dichotomous",
  364. cdx_dyslipid ~ "dichotomous",
  365. cdx_cvd ~ "dichotomous",
  366. cdx_dm ~ "dichotomous",
  367. ldl ~ "continuous",
  368. gluc ~ "continuous",
  369. a1c ~ "continuous",
  370. egfr_nonaa ~ "continuous",
  371. choltot ~ "continuous",
  372. apoe4_positivity ~ "dichotomous",
  373. wmhv_2 ~ "continuous",
  374. absuvr_2 ~ "continuous",
  375. taumedtempsuvr_2 ~ "continuous",
  376. ctmetaroi_2 ~ "continuous",
  377. icv_1_cm3 ~ "continuous"),
  378. value = list(
  379. hasnoinsurance ~ 1,
  380. takes_BP_meds ~ 1,
  381. has_htn ~ 1,
  382. cdx_dep ~ 1,
  383. cdx_cog ~ 1,
  384. cdx_dyslipid ~ 1,
  385. cdx_cvd ~ 1,
  386. cdx_dm ~ 1,
  387. apoe4_positivity ~ 1),
  388. statistic = list(
  389. all_continuous() ~ "{mean} ({sd})",
  390. all_dichotomous() ~ "{n} ({p}%)",
  391. all_categorical() ~ "{n} ({p}%)",
  392. wmhv_2 ~ "{median} ({p25}, {p75})",
  393. absuvr_2 ~ "{median} ({p25}, {p75})",
  394. taumedtempsuvr_2 ~ "{median} ({p25}, {p75})"),
  395. label = list(
  396. age_1 = "Age At Baseline (Years)",
  397. gender_fct = "Sex/Gender",
  398. edu = "Education (Years)",
  399. agediff12 = "Years Between Visit 1 and 2",
  400. hasnoinsurance = "Has No Insurance",
  401. income = "Income (Dollars)",
  402. socsupptot = "Social Support Score",
  403. smkever = "Ever Smoker",
  404. bmi = "Body Mass Index",
  405. sbpavg = "Systolic Blood Pressure (mmHg)",
  406. dbpavg = "Diastolic Blood Pressure (mmHg)",
  407. rapa_1_total = "Rapid Assessment of Physical Activity Score, Aerobic",
  408. rapa_2_total = "Rapid Assessment of Physical Activity Score, Strength and Flexibility",
  409. gds_total = "Geriatric Depression Score",
  410. takes_BP_meds = "Taking Blood Pressure Medications at Baseline",
  411. has_htn = "Hypertension",
  412. cdx_dep = "Depression",
  413. cdx_cog = "Mild Cognitive Impairment",
  414. cdx_dyslipid = "Dyslipidemia",
  415. cdx_cvd = "Cardiovascular Disease",
  416. cdx_dm = "Diabetes",
  417. ldl = "LDL (mg/dL)",
  418. gluc = "Glucose (mg/dL)",
  419. a1c = "Hemoglobin A1c (%)",
  420. egfr_nonaa = "eGFR (mL/min/1.73m^2)",
  421. choltot = "Total Cholesterol (mg/dL)",
  422. apoe4_positivity = "APOE4 Allele Positive",
  423. wmhv_2 = "White Matter Hyperintensity Volume (cm^3)",
  424. absuvr_2 = "Global Amyloid-PET SUVR",
  425. taumedtempsuvr_2 = "MTL Tau-PET SUVR",
  426. ctmetaroi_2 = "AD meta-ROI Cortical Thickness (mm)",
  427. icv_1_cm3 = "Intracranial Volume (cm^3)"),
  428. missing = "no")
  429. tbl1_ab
  430. # Cross-tab of race/ethnicity and HTN diagnosis among those with WMHV at visit 2
  431. ab <- causmed2 %>% filter(hasabv2 == 1)
  432. tab_xtab(var.row = as.factor(ab$has_htn),
  433. var.col = as.factor(ab$ethnicity),
  434. show.row.prc = TRUE,
  435. show.col.prc = TRUE,
  436. show.na = TRUE)
  437. ```
  438. # Table 1, for those with MTL Tau-PET at visit 2
  439. ```{r table 1 wmhv, include = FALSE}
  440. tbl1_mttau <- causmed2 %>%
  441. filter(hasmttau2_fct == "Has MTL Tau-PET at Visit 2") %>%
  442. tbl_summary(include = c(# demographics
  443. age_1, gender_fct, agediff12,
  444. # social
  445. edu, hasnoinsurance, income, socsupptot,
  446. # clinical/behavioral variables
  447. smkever, bmi, sbpavg, dbpavg, rapa_1_total,
  448. rapa_2_total, gds_total, takes_BP_meds, has_htn,
  449. # medical history
  450. cdx_dep, cdx_cog, cdx_dyslipid, cdx_cvd, cdx_dm,
  451. # labs
  452. ldl, gluc, a1c, egfr_nonaa, choltot,
  453. apoe4_positivity,
  454. # imaging vars
  455. wmhv_2, absuvr_2, taumedtempsuvr_2, ctmetaroi_2,
  456. icv_1_cm3),
  457. by = ethnicity,
  458. type = list(
  459. age_1 ~ "continuous",
  460. gender_fct ~ "categorical",
  461. edu ~ "continuous",
  462. agediff12 ~ "continuous",
  463. hasnoinsurance ~ "dichotomous",
  464. income ~ "continuous",
  465. socsupptot ~ "continuous",
  466. smkever ~ "dichotomous",
  467. bmi ~ "continuous",
  468. sbpavg ~ "continuous",
  469. dbpavg ~ "continuous",
  470. rapa_1_total ~ "continuous",
  471. rapa_2_total ~ "continuous",
  472. gds_total ~ "continuous",
  473. takes_BP_meds ~ "dichotomous",
  474. has_htn ~ "dichotomous",
  475. cdx_dep ~ "dichotomous",
  476. cdx_cog ~ "dichotomous",
  477. cdx_dyslipid ~ "dichotomous",
  478. cdx_cvd ~ "dichotomous",
  479. cdx_dm ~ "dichotomous",
  480. ldl ~ "continuous",
  481. gluc ~ "continuous",
  482. a1c ~ "continuous",
  483. egfr_nonaa ~ "continuous",
  484. choltot ~ "continuous",
  485. apoe4_positivity ~ "dichotomous",
  486. wmhv_2 ~ "continuous",
  487. absuvr_2 ~ "continuous",
  488. taumedtempsuvr_2 ~ "continuous",
  489. ctmetaroi_2 ~ "continuous",
  490. icv_1_cm3 ~ "continuous"),
  491. value = list(
  492. hasnoinsurance ~ 1,
  493. takes_BP_meds ~ 1,
  494. has_htn ~ 1,
  495. cdx_dep ~ 1,
  496. cdx_cog ~ 1,
  497. cdx_dyslipid ~ 1,
  498. cdx_cvd ~ 1,
  499. cdx_dm ~ 1,
  500. apoe4_positivity ~ 1),
  501. statistic = list(
  502. all_continuous() ~ "{mean} ({sd})",
  503. all_dichotomous() ~ "{n} ({p}%)",
  504. all_categorical() ~ "{n} ({p}%)",
  505. wmhv_2 ~ "{median} ({p25}, {p75})",
  506. absuvr_2 ~ "{median} ({p25}, {p75})",
  507. taumedtempsuvr_2 ~ "{median} ({p25}, {p75})"),
  508. label = list(
  509. age_1 = "Age At Baseline (Years)",
  510. gender_fct = "Sex/Gender",
  511. edu = "Education (Years)",
  512. agediff12 = "Years Between Visit 1 and 2",
  513. hasnoinsurance = "Has No Insurance",
  514. income = "Income (Dollars)",
  515. socsupptot = "Social Support Score",
  516. smkever = "Ever Smoker",
  517. bmi = "Body Mass Index",
  518. sbpavg = "Systolic Blood Pressure (mmHg)",
  519. dbpavg = "Diastolic Blood Pressure (mmHg)",
  520. rapa_1_total = "Rapid Assessment of Physical Activity Score, Aerobic",
  521. rapa_2_total = "Rapid Assessment of Physical Activity Score, Strength and Flexibility",
  522. gds_total = "Geriatric Depression Score",
  523. takes_BP_meds = "Taking Blood Pressure Medications at Baseline",
  524. has_htn = "Hypertension",
  525. cdx_dep = "Depression",
  526. cdx_cog = "Mild Cognitive Impairment",
  527. cdx_dyslipid = "Dyslipidemia",
  528. cdx_cvd = "Cardiovascular Disease",
  529. cdx_dm = "Diabetes",
  530. ldl = "LDL (mg/dL)",
  531. gluc = "Glucose (mg/dL)",
  532. a1c = "Hemoglobin A1c (%)",
  533. egfr_nonaa = "eGFR (mL/min/1.73m^2)",
  534. choltot = "Total Cholesterol (mg/dL)",
  535. apoe4_positivity = "APOE4 Allele Positive",
  536. wmhv_2 = "White Matter Hyperintensity Volume (cm^3)",
  537. absuvr_2 = "Global Amyloid-PET SUVR",
  538. taumedtempsuvr_2 = "MTL Tau-PET SUVR",
  539. ctmetaroi_2 = "AD meta-ROI Cortical Thickness (mm)",
  540. icv_1_cm3 = "Intracranial Volume (cm^3)"),
  541. missing = "no")
  542. tbl1_mttau
  543. # Cross-tab of race/ethnicity and HTN diagnosis among those with tau at visit 2
  544. tau <- causmed2 %>% filter(hasmttauv2 == 1)
  545. tab_xtab(var.row = as.factor(tau$has_htn),
  546. var.col = as.factor(tau$ethnicity),
  547. show.row.prc = TRUE,
  548. show.col.prc = TRUE,
  549. show.na = TRUE)
  550. ```
  551. # Table 1, for those with AD meta-ROI CT at visit 2
  552. ```{r table 1 wmhv, include = FALSE}
  553. tbl1_adct <- causmed2 %>%
  554. filter(hasctv2_fct == "Has AD meta-ROI CT at Visit 2") %>%
  555. tbl_summary(include = c(# demographics
  556. age_1, gender_fct, agediff12,
  557. # social
  558. edu, hasnoinsurance, income, socsupptot,
  559. # clinical/behavioral variables
  560. smkever, bmi, sbpavg, dbpavg, rapa_1_total,
  561. rapa_2_total, gds_total, takes_BP_meds, has_htn,
  562. # medical history
  563. cdx_dep, cdx_cog, cdx_dyslipid, cdx_cvd, cdx_dm,
  564. # labs
  565. ldl, gluc, a1c, egfr_nonaa, choltot,
  566. apoe4_positivity,
  567. # imaging vars
  568. wmhv_2, absuvr_2, taumedtempsuvr_2, ctmetaroi_2,
  569. icv_1_cm3),
  570. by = ethnicity,
  571. type = list(
  572. age_1 ~ "continuous",
  573. gender_fct ~ "categorical",
  574. edu ~ "continuous",
  575. agediff12 ~ "continuous",
  576. hasnoinsurance ~ "dichotomous",
  577. income ~ "continuous",
  578. socsupptot ~ "continuous",
  579. smkever ~ "dichotomous",
  580. bmi ~ "continuous",
  581. sbpavg ~ "continuous",
  582. dbpavg ~ "continuous",
  583. rapa_1_total ~ "continuous",
  584. rapa_2_total ~ "continuous",
  585. gds_total ~ "continuous",
  586. takes_BP_meds ~ "dichotomous",
  587. has_htn ~ "dichotomous",
  588. cdx_dep ~ "dichotomous",
  589. cdx_cog ~ "dichotomous",
  590. cdx_dyslipid ~ "dichotomous",
  591. cdx_cvd ~ "dichotomous",
  592. cdx_dm ~ "dichotomous",
  593. ldl ~ "continuous",
  594. gluc ~ "continuous",
  595. a1c ~ "continuous",
  596. egfr_nonaa ~ "continuous",
  597. choltot ~ "continuous",
  598. apoe4_positivity ~ "dichotomous",
  599. wmhv_2 ~ "continuous",
  600. absuvr_2 ~ "continuous",
  601. taumedtempsuvr_2 ~ "continuous",
  602. ctmetaroi_2 ~ "continuous",
  603. icv_1_cm3 ~ "continuous"),
  604. value = list(
  605. hasnoinsurance ~ 1,
  606. takes_BP_meds ~ 1,
  607. has_htn ~ 1,
  608. cdx_dep ~ 1,
  609. cdx_cog ~ 1,
  610. cdx_dyslipid ~ 1,
  611. cdx_cvd ~ 1,
  612. cdx_dm ~ 1,
  613. apoe4_positivity ~ 1),
  614. statistic = list(
  615. all_continuous() ~ "{mean} ({sd})",
  616. all_dichotomous() ~ "{n} ({p}%)",
  617. all_categorical() ~ "{n} ({p}%)",
  618. wmhv_2 ~ "{median} ({p25}, {p75})",
  619. absuvr_2 ~ "{median} ({p25}, {p75})",
  620. taumedtempsuvr_2 ~ "{median} ({p25}, {p75})"),
  621. label = list(
  622. age_1 = "Age At Baseline (Years)",
  623. gender_fct = "Sex/Gender",
  624. edu = "Education (Years)",
  625. agediff12 = "Years Between Visit 1 and 2",
  626. hasnoinsurance = "Has No Insurance",
  627. income = "Income (Dollars)",
  628. socsupptot = "Social Support Score",
  629. smkever = "Ever Smoker",
  630. bmi = "Body Mass Index",
  631. sbpavg = "Systolic Blood Pressure (mmHg)",
  632. dbpavg = "Diastolic Blood Pressure (mmHg)",
  633. rapa_1_total = "Rapid Assessment of Physical Activity Score, Aerobic",
  634. rapa_2_total = "Rapid Assessment of Physical Activity Score, Strength and Flexibility",
  635. gds_total = "Geriatric Depression Score",
  636. takes_BP_meds = "Taking Blood Pressure Medications at Baseline",
  637. has_htn = "Hypertension",
  638. cdx_dep = "Depression",
  639. cdx_cog = "Mild Cognitive Impairment",
  640. cdx_dyslipid = "Dyslipidemia",
  641. cdx_cvd = "Cardiovascular Disease",
  642. cdx_dm = "Diabetes",
  643. ldl = "LDL (mg/dL)",
  644. gluc = "Glucose (mg/dL)",
  645. a1c = "Hemoglobin A1c (%)",
  646. egfr_nonaa = "eGFR (mL/min/1.73m^2)",
  647. choltot = "Total Cholesterol (mg/dL)",
  648. apoe4_positivity = "APOE4 Allele Positive",
  649. wmhv_2 = "White Matter Hyperintensity Volume (cm^3)",
  650. absuvr_2 = "Global Amyloid-PET SUVR",
  651. taumedtempsuvr_2 = "MTL Tau-PET SUVR",
  652. ctmetaroi_2 = "AD meta-ROI Cortical Thickness (mm)",
  653. icv_1_cm3 = "Intracranial Volume (cm^3)"),
  654. missing = "no")
  655. tbl1_adct
  656. # Cross-tab of race/ethnicity and HTN diagnosis among those with adct at visit 2
  657. ct <- causmed2 %>% filter(hasctv2 == 1)
  658. tab_xtab(var.row = as.factor(ct$has_htn),
  659. var.col = as.factor(ct$ethnicity),
  660. show.row.prc = TRUE,
  661. show.col.prc = TRUE,
  662. show.na = TRUE)
  663. ```
  664. # Merging table 1 across all samples
  665. ```{r table 1 testing, echo = T, results = 'hide'}
  666. tbl1_everything <- tbl_merge(tbls =
  667. list(tbl1_ab,
  668. tbl1_mttau,
  669. tbl1_adct,
  670. tbl1_wmhv ),
  671. tab_spanner = c("**Amyloid PET (n=679)**",
  672. "**MTL-Tau (n=408)**",
  673. "**AD meta-ROI CT (n=1005)**",
  674. "**WMHV (n=1333)**"))
  675. tbl1_everything
  676. # saving output
  677. tbl1_everything %>%
  678. as_gt() %>%
  679. gtsave("./results/tbl1_everything.docx")
  680. # Cross-tab of race/ethnicity and HTN diagnosis among those with any imaging at visit 2
  681. any <- causmed2 %>% filter(haswmhv2 == 1 | hasabv2 == 1 | hasmttauv2 == 1 | hasctv2 == 1) #n=1347
  682. tab_xtab(var.row = as.factor(any$has_htn),
  683. var.col = as.factor(any$ethnicity),
  684. #show.row.prc = TRUE,
  685. show.col.prc = TRUE,
  686. show.na = TRUE)
  687. # SBP stratified by race ethnicity
  688. describeBy(any$sbpavg, any$ethnicity)
  689. ```
  690. # Heatmap of correlation matrix of covariates
  691. ```{r corr}
  692. # Taking a look at all the non-categorical variables
  693. cov <- causmed2 %>%
  694. select(# demographics
  695. age_1, agediff12,
  696. # social
  697. edu, income, socsupptot,
  698. # clinical/behavioral variables
  699. smkever, bmi, sbpavg, dbpavg, rapa_1_total,
  700. rapa_2_total, gds_total,
  701. # labs
  702. ldl, gluc, a1c, egfr_nonaa, choltot,
  703. # imaging vars
  704. wmhv_2, absuvr_2, taumedtempsuvr_2, ctmetaroi_2,
  705. icv_1_cm3)
  706. str(cov)
  707. cor_mat <- cor(cov, use = "complete.obs")
  708. cor_p <- ggcorrplot(cor_mat, hc.order = FALSE, type = "lower",
  709. outline.col = "white",
  710. ggtheme = ggplot2::theme_gray,
  711. colors = c("#af8dc3", "white", "#7fbf7b"))
  712. cor_p
  713. ggsave("./results/cor_plot.jpeg",
  714. dpi = 400,
  715. plot = cor_p)
  716. ```

2. descriptive_11 18 25.Rmd at commit 2b1ca73, no license · at the source

Overview

Authors: Michelle Caunca1, Sirena Gutierrez2, Koral Wheeler3, Meredith N Braskie3, Jacqueline Torres2, Kristine Yaffe1,2,4
  1. Department of Neurology, University of California, San Francisco
  2. Department of Epidemiology and Biostatistics, University of California, San Francisco
  3. Mark and Mary Stevens Neuroimaging and Informatics Institute, Keck School of Medicine, University of Southern California, Marina Del Rey; and
  4. Department of Psychiatry and Behavioral Sciences, University of California, San Francisco
Institutions: University of California, San Francisco (United States); University of Southern California (United States)
Journal: Neurology, volume 107, issue 1, article e218164
Dates: received 26 June 2025; accepted 8 April 2026; published online 12 June 2026; in print 14 July 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1212/wnl.0000000000218164 · PMID 42284535 · PMCID PMC13312934 · OpenAlex W7164485887
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: structural MRI / diffusion (modality), human (organism), other condition (population), clinical / translational (subfield)
Methods: Machine learning, Statistics, Preprocessing, fMRI & imaging
MeSH: Aging*, Brain*, Hypertension*, Aged, Black or African American, Cohort Studies, Female, Hispanic or Latino, Humans, Magnetic Resonance Imaging, Male, Mediation Analysis, Middle Aged, Neuroimaging, White, White Matter (* major topic)
Topic: Dementia and Cognitive Impairment Research (Psychiatry and Mental health, Medicine), according to OpenAlex
Funding: NINDS NIH HHS (UE5 NS070680)
Citations: not cited yet (Europe PMC); 51 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repository

Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.

michelle-caunca/HABS_CM_RaceEthHTNImg

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 2b1ca7397e214766fa4914b23bdbd9bae0aed3bf, 19 December 2025
Languages: R (11)
Size: 12 files, 11 scripts
Software Heritage: not archived
Found in: “Data Availability”
Holds: README, 11 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: broom (11 files), psych (11 files), tidyverse (11 files), ggplot2 (1 file), reshape2 (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
12 files

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:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 11 scripts, each with its path and the digest of its content;
  • 3 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.

Code and data availability statement

The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1212/wnl.0000000000218164.

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

  • Publisher: n/a → Lippincott Williams & Wilkins

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 16 MeSH terms, 1 funder, 47 references.

Cite

This paper

Caunca, M., Gutierrez, S., Wheeler, K., Braskie, M. N., Torres, J., & Yaffe, K. (2026). Race and Ethnicity, Hypertension, and Neuroimaging Markers of Brain Aging: A Causal Mediation Analysis in the HABS-HD Study. Neurology, 107(1), e218164. https://doi.org/10.1212/wnl.0000000000218164

BibTeX

@article{caunca2026race,
author = {Caunca, Michelle and Gutierrez, Sirena and Wheeler, Koral and Braskie, Meredith N and Torres, Jacqueline and Yaffe, Kristine},
title = {{Race and Ethnicity, Hypertension, and Neuroimaging Markers of Brain Aging: A Causal Mediation Analysis in the HABS-HD Study}},
journal = {Neurology},
year = {2026},
month = jun,
volume = {107},
number = {1},
pages = {e218164},
publisher = {Lippincott Williams \& Wilkins},
issn = {0028-3878},
doi = {10.1212/wnl.0000000000218164},
url = {https://doi.org/10.1212/wnl.0000000000218164},
pmid = {42284535},
pmcid = {PMC13312934}
}

RIS

TY - JOUR
AU - Caunca, Michelle
AU - Gutierrez, Sirena
AU - Wheeler, Koral
AU - Braskie, Meredith N
AU - Torres, Jacqueline
AU - Yaffe, Kristine
TI - Race and Ethnicity, Hypertension, and Neuroimaging Markers of Brain Aging: A Causal Mediation Analysis in the HABS-HD Study
T2 - Neurology
J2 - Neurology
PY - 2026
DA - 2026/06/12
VL - 107
IS - 1
SP - e218164
SN - 0028-3878
PB - Lippincott Williams & Wilkins
DO - 10.1212/wnl.0000000000218164
UR - https://doi.org/10.1212/wnl.0000000000218164
LA - en
ER -

CSL-JSON

{
"id": "10.1212/wnl.0000000000218164",
"type": "article-journal",
"title": "Race and Ethnicity, Hypertension, and Neuroimaging Markers of Brain Aging: A Causal Mediation Analysis in the HABS-HD Study",
"container-title": "Neurology",
"author": [
{
"family": "Caunca",
"given": "Michelle"
},
{
"family": "Gutierrez",
"given": "Sirena"
},
{
"family": "Wheeler",
"given": "Koral"
},
{
"family": "Braskie",
"given": "Meredith N"
},
{
"family": "Torres",
"given": "Jacqueline"
},
{
"family": "Yaffe",
"given": "Kristine"
}
],
"container-title-short": "Neurology",
"volume": "107",
"issue": "1",
"page": "e218164",
"DOI": "10.1212/wnl.0000000000218164",
"PMID": "42284535",
"PMCID": "PMC13312934",
"ISSN": "0028-3878",
"publisher": "Lippincott Williams & Wilkins",
"URL": "https://doi.org/10.1212/wnl.0000000000218164",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
12
]
]
}
}

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.1002/alz.71567 [code]
Associations of dementia polyexposure scores to Alzheimer's disease endophenotypes in a diverse population.
Journal: Alzheimer's & dementia : the journal of the Alzheimer's Association
In common: broom, ggplot2, tidyverse, clinical / translational, 3 references
[2] doi:10.1016/j.isci.2026.115657 [code]
Integration of machine learning to develop a disulfidptosis model for predicting glioma prognosis, immunotherapy response, and drug.
Journal: iScience
In common: psych, broom, reshape2, 2 other tools, clinical / translational, other condition
[3] doi:10.1093/braincomms/fcag146 [code]
Convergent structural brain alterations in chronic pain: a multi-metric individual participant data meta-analysis.
Journal: Brain communications
In common: psych, broom, reshape2, 2 other tools, structural MRI / diffusion
[4] doi:10.1038/s41467-026-71415-x [code]
Regional BOLD variability reflects microstructural maturation and neuronal ensheathment in the preterm infant cortex.
Journal: Nature communications
In common: psych, broom, reshape2, 2 other tools, other condition
[5] doi:10.1093/ageing/afag263 [code]
Cardiometabolic medication exposures and cognitive outcomes in Alzheimer's disease.
Journal: Age and ageing
In common: psych, broom, ggplot2, 1 other tool, 1 reference
[6] doi:10.1038/s41398-026-04131-1 [code]
Multimodal phenotypic classification of generalized anxiety and panic using structural MRI data and psychosocial factors: machine learning results from the German National Cohort (NAKO) study.
Journal: Translational psychiatry
In common: psych, broom, ggplot2, 1 other tool, structural MRI / diffusion, clinical / translational, other condition
[7] doi:10.1093/braincomms/fcag279 [code]
Network flexibility facilitates treatment-induced recovery in post-stroke aphasia.
Journal: Brain communications
In common: psych, broom, reshape2, 2 other tools
[8] doi:10.1038/s43587-026-01207-x [code]
A microprotein atlas of the human frontal cortex in Alzheimer's disease.
Journal: Nature aging
In common: psych, broom, reshape2, 2 other tools
[9] doi:10.1126/sciadv.aec9291 [code]
Computational mechanisms of perception in autism revealed using games inspired by rodent operant tasks.
Journal: Science advances
In common: psych, broom, reshape2, 2 other tools
[10] doi:10.1111/nyas.70314 [code]
Neural Oscillatory Dynamics in Joint Action: Dissociable Roles of Entrainment and Beta Modulation in Self-Other Integration.
Journal: Annals of the New York Academy of Sciences
In common: psych, broom, reshape2, 2 other tools

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.

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.