Race and Ethnicity, Hypertension, and Neuroimaging Markers of Brain Aging: A Causal Mediation Analysis in the HABS-HD Study.
2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 3 matches
- [1] § Methods › Covariates of Interest ↔ 2. descriptive_11 18 25.Rmd, lines 220 to 333 · score 0.96 · Cardiovascular disease, Geriatric Depression, medical history, Body mass, intracranial volume, hemoglobin A1c · block
oscr:b:Q5V1KNVQBGQ3C-8· Report a mismatch - [2] § Methods › Statistical Analysis › Generating Exposure and Mediator IPWs ↔ 2. descriptive_11 18 25.Rmd, lines 220 to 333 · score 0.73 · tau PET SUVR, eGFR, amyloid PET, physical activity, diagnosis, glucose · block
oscr:b:Q5V1KNVQBGQ3C-8· Report a mismatch - [3] § Methods › Statistical Analysis › Marginal Structural Models ↔ 2. descriptive_11 18 25.Rmd, lines 334 to 447 · score 0.67 · eGFR, social support, physical activity, diagnoses, depressive, glucose · block
oscr:b:355JS7KGT583R-P· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: 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
- ---
- title: "2. descriptive_02 27 25"
- output: html_document
- date: "2025-02-27"
- ---
- # Loading packages
- ```{r packages, include = FALSE}
- library(haven) # inputting data
- library(tidyverse) # data mgmt
- library(psych) # easy summary statistics
- library(DT) # data tables
- library(tableone) # easy table 1
- library(kableExtra) # format kable objects
- library(naniar) # for missingness
- library(survey) # for MSMs
- library(nnet) # multinormal regression
- library(cobalt) # examining covariate balance
- library(gt) # nice tables
- library(gtsummary) # nice tables
- library(broom) # making output nice
- library(sjPlot) # nice cross tabs
- library(openxlsx) # outputting excel sheets
- library(ggcorrplot) # correlation plots
- library(reshape2) # reshaping
- library(RColorBrewer) # color pallettes
- options(max.print=100000)
- ```
- ```{css scroll box for code, include = FALSE}
- pre {
- max-height: 300px;
- overflow-y: auto;
- }
- pre[class] {
- max-height: 100px;
- }
- ```
- # Loading data
- ```{r data, include = FALSE}
- load(file = "./analysis data/causmed.Rdata") # n=3592, v=68
- names(causmed) %>% view()
- ```
- ## Creating time difference variable
- With age1 and age2 as the main time variable.
- ```{r time diff, include = FALSE}
- causmed2 <- causmed %>%
- mutate(agediff12 = age_2 - age_1) %>%
- mutate(gender_fct = case_when(
- gender == 0 ~ "Men",
- gender == 1 ~ "Women",
- TRUE ~ NA)) %>%
- mutate(gender_fct = factor(gender_fct,
- levels = c("Men", "Women"))) %>%
- mutate(haswmhv2_fct = case_when(
- haswmhv2 == 1 ~ "Has WMHV at Visit 2",
- haswmhv2 == 0 ~ "No WMHV at Visit 2",
- TRUE ~ NA)) %>%
- mutate(haswmhv2_fct = factor(haswmhv2_fct,
- levels = c("Has WMHV at Visit 2",
- "No WMHV at Visit 2"))) %>%
- mutate(hasabv2_fct = case_when(
- hasabv2 == 1 ~ "Has Amyloid-PET at Visit 2",
- hasabv2 == 0 ~ "No Amyloid-PET at Visit 2",
- TRUE ~ NA)) %>%
- mutate(hasabv2_fct = factor(hasabv2_fct,
- levels = c("Has Amyloid-PET at Visit 2",
- "No Amyloid-PET at Visit 2"))) %>%
- mutate(hasmttau2_fct = case_when(
- hasmttauv2 == 1 ~ "Has MTL Tau-PET at Visit 2",
- hasmttauv2 == 0 ~ "No MTL Tau-PET at Visit 2",
- TRUE ~ NA)) %>%
- mutate(hasmttau2_fct = factor(hasmttau2_fct,
- levels = c("Has MTL Tau-PET at Visit 2",
- "No MTL Tau-PET at Visit 2"))) %>%
- mutate(hasctv2_fct = case_when(
- hasctv2 == 1 ~ "Has AD meta-ROI CT at Visit 2",
- hasctv2 == 0 ~ "No AD meta-ROI CT at Visit 2",
- TRUE ~ NA)) %>%
- mutate(hasctv2_fct = factor(hasctv2_fct,
- levels = c("Has AD meta-ROI CT at Visit 2",
- "No AD meta-ROI CT at Visit 2"))) %>%
- mutate(icv_1_cm3 = (icv_1/1000)) %>%
- mutate(takes_BP_meds = factor(takes_BP_meds,
- levels = c(0, 1))) %>%
- mutate(has_img1 = case_when(
- (hasabv1 == 1 | hasmttauv1 == 1 | hasctv1 == 1 | haswmhv1 == 1) ~ 1,
- (hasabv1 == 0 & hasmttauv1 == 0 & hasctv1 == 0 & haswmhv1 == 0) ~ 0,
- TRUE ~ NA)) %>%
- mutate(has_img2 = case_when(
- (hasabv2 == 1 | hasmttauv2 == 1 | hasctv2 == 1 | haswmhv2 == 1) ~ 1,
- (hasabv2 == 0 & hasmttauv2 == 0 & hasctv2 == 0 & haswmhv2 == 0) ~ 0,
- TRUE ~ NA))
- # n=3592, v=76
- # checking variables
- summary(causmed2$haswmhv2_fct)
- summary(causmed2$hasabv2_fct)
- summary(causmed2$hasmttau2_fct)
- summary(causmed2$hasctv2_fct)
- summary(causmed2$icv_1_cm3)
- summary(as.factor(causmed2$has_img1))
- summary(as.factor(causmed2$has_img2))
- ```
- # Table 1, with any imaging, by race/ethnicity
- ```{r table 1, include = FALSE}
- tbl1_img <- causmed2 %>%
- filter(has_img2 == 1) %>%
- tbl_summary(include = c(# demographics
- age_1, gender_fct, agediff12,
- # social
- edu, hasnoinsurance, income, socsupptot,
- # clinical/behavioral variables
- smkever, bmi, sbpavg, dbpavg, rapa_1_total,
- rapa_2_total, gds_total, takes_BP_meds, has_htn,
- # medical history
- cdx_dep, cdx_cog, cdx_dyslipid, cdx_cvd, cdx_dm,
- # labs
- ldl, gluc, a1c, egfr_nonaa, choltot,
- apoe4_positivity,
- # imaging vars
- wmhv_2, absuvr_2, taumedtempsuvr_2, ctmetaroi_2,
- icv_1_cm3),
- by = ethnicity,
- type = list(
- age_1 ~ "continuous",
- gender_fct ~ "categorical",
- edu ~ "continuous",
- agediff12 ~ "continuous",
- hasnoinsurance ~ "dichotomous",
- income ~ "continuous",
- socsupptot ~ "continuous",
- smkever ~ "dichotomous",
- bmi ~ "continuous",
- sbpavg ~ "continuous",
- dbpavg ~ "continuous",
- rapa_1_total ~ "continuous",
- rapa_2_total ~ "continuous",
- gds_total ~ "continuous",
- takes_BP_meds ~ "dichotomous",
- has_htn ~ "dichotomous",
- cdx_dep ~ "dichotomous",
- cdx_cog ~ "dichotomous",
- cdx_dyslipid ~ "dichotomous",
- cdx_cvd ~ "dichotomous",
- cdx_dm ~ "dichotomous",
- ldl ~ "continuous",
- gluc ~ "continuous",
- a1c ~ "continuous",
- egfr_nonaa ~ "continuous",
- choltot ~ "continuous",
- apoe4_positivity ~ "dichotomous",
- wmhv_2 ~ "continuous",
- absuvr_2 ~ "continuous",
- taumedtempsuvr_2 ~ "continuous",
- ctmetaroi_2 ~ "continuous",
- icv_1_cm3 ~ "continuous"),
- value = list(
- hasnoinsurance ~ 1,
- takes_BP_meds ~ 1,
- has_htn ~ 1,
- cdx_dep ~ 1,
- cdx_cog ~ 1,
- cdx_dyslipid ~ 1,
- cdx_cvd ~ 1,
- cdx_dm ~ 1,
- apoe4_positivity ~ 1),
- statistic = list(
- all_continuous() ~ "{mean} ({sd})",
- all_dichotomous() ~ "{n} ({p}%)",
- all_categorical() ~ "{n} ({p}%)",
- wmhv_2 ~ "{median} ({p25}, {p75})",
- absuvr_2 ~ "{median} ({p25}, {p75})",
- taumedtempsuvr_2 ~ "{median} ({p25}, {p75})"),
- label = list(
- age_1 = "Age At Baseline (Years)",
- ethnicity = "Race/Ethnicity",
- gender_fct = "Sex/Gender",
- edu = "Education (Years)",
- agediff12 = "Years Between Visit 1 and 2",
- hasnoinsurance = "Has No Insurance",
- income = "Income (Dollars)",
- socsupptot = "Social Support Score",
- smkever = "Ever Smoker",
- bmi = "Body Mass Index",
- sbpavg = "Systolic Blood Pressure (mmHg)",
- dbpavg = "Diastolic Blood Pressure (mmHg)",
- rapa_1_total = "Rapid Assessment of Physical Activity Score, Aerobic",
- rapa_2_total = "Rapid Assessment of Physical Activity Score, Strength and Flexibility",
- gds_total = "Geriatric Depression Score",
- takes_BP_meds = "Taking Blood Pressure Medications at Baseline",
- has_htn = "Hypertension",
- cdx_dep = "Depression",
- cdx_cog = "Mild Cognitive Impairment",
- cdx_dyslipid = "Dyslipidemia",
- cdx_cvd = "Cardiovascular Disease",
- cdx_dm = "Diabetes",
- ldl = "LDL (mg/dL)",
- gluc = "Glucose (mg/dL)",
- a1c = "Hemoglobin A1c (%)",
- egfr_nonaa = "eGFR (non-African American, mL/min/1.73m^2)",
- choltot = "Total Cholesterol (mg/dL)",
- apoe4_positivity = "APOE4 Allele Positive",
- wmhv_2 = "White Matter Hyperintensity Volume (cm^3)",
- absuvr_2 = "Global Amyloid-PET SUVR",
- taumedtempsuvr_2 = "MTL Tau-PET SUVR",
- ctmetaroi_2 = "AD meta-ROI Cortical Thickness (mm)",
- icv_1_cm3 = "Intracranial Volume (cm^3)"),
- missing = "no")
- tbl1_img
- tbl1_img %>%
- as_gt() %>%
- gtsave("./results/tbl1_img.docx")
- ```
- # Table 1, for those with WMHV at visit 2
- ```{r table 1 wmhv, include = FALSE}
- tbl1_wmhv <- causmed2 %>%
- filter(haswmhv2_fct == "Has WMHV at Visit 2") %>%
- tbl_summary(include = c(# demographics
- age_1, gender_fct, agediff12,
- # social
- edu, hasnoinsurance, income, socsupptot,
- # clinical/behavioral variables
- smkever, bmi, sbpavg, dbpavg, rapa_1_total,
- rapa_2_total, gds_total, takes_BP_meds, has_htn,
- # medical history
- cdx_dep, cdx_cog, cdx_dyslipid, cdx_cvd, cdx_dm,
- # labs
- ldl, gluc, a1c, egfr_nonaa, choltot,
- apoe4_positivity,
- # imaging vars
- wmhv_2, absuvr_2, taumedtempsuvr_2, ctmetaroi_2,
- icv_1_cm3),
- by = ethnicity,
- type = list(
- age_1 ~ "continuous",
- gender_fct ~ "categorical",
- edu ~ "continuous",
- agediff12 ~ "continuous",
- hasnoinsurance ~ "dichotomous",
- income ~ "continuous",
- socsupptot ~ "continuous",
- smkever ~ "dichotomous",
- bmi ~ "continuous",
- sbpavg ~ "continuous",
- dbpavg ~ "continuous",
- rapa_1_total ~ "continuous",
- rapa_2_total ~ "continuous",
- gds_total ~ "continuous",
- takes_BP_meds ~ "dichotomous",
- has_htn ~ "dichotomous",
- cdx_dep ~ "dichotomous",
- cdx_cog ~ "dichotomous",
- cdx_dyslipid ~ "dichotomous",
- cdx_cvd ~ "dichotomous",
- cdx_dm ~ "dichotomous",
- ldl ~ "continuous",
- gluc ~ "continuous",
- a1c ~ "continuous",
- egfr_nonaa ~ "continuous",
- choltot ~ "continuous",
- apoe4_positivity ~ "dichotomous",
- wmhv_2 ~ "continuous",
- absuvr_2 ~ "continuous",
- taumedtempsuvr_2 ~ "continuous",
- ctmetaroi_2 ~ "continuous",
- icv_1_cm3 ~ "continuous"),
- value = list(
- hasnoinsurance ~ 1,
- takes_BP_meds ~ 1,
- has_htn ~ 1,
- cdx_dep ~ 1,
- cdx_cog ~ 1,
- cdx_dyslipid ~ 1,
- cdx_cvd ~ 1,
- cdx_dm ~ 1,
- apoe4_positivity ~ 1),
- statistic = list(
- all_continuous() ~ "{mean} ({sd})",
- all_dichotomous() ~ "{n} ({p}%)",
- all_categorical() ~ "{n} ({p}%)",
- wmhv_2 ~ "{median} ({p25}, {p75})",
- absuvr_2 ~ "{median} ({p25}, {p75})",
- taumedtempsuvr_2 ~ "{median} ({p25}, {p75})"),
- label = list(
- age_1 = "Age At Baseline (Years)",
- gender_fct = "Sex/Gender",
- edu = "Education (Years)",
- agediff12 = "Years Between Visit 1 and 2",
- hasnoinsurance = "Has No Insurance",
- income = "Income (Dollars)",
- socsupptot = "Social Support Score",
- smkever = "Ever Smoker",
- bmi = "Body Mass Index",
- sbpavg = "Systolic Blood Pressure (mmHg)",
- dbpavg = "Diastolic Blood Pressure (mmHg)",
- rapa_1_total = "Rapid Assessment of Physical Activity Score, Aerobic",
- rapa_2_total = "Rapid Assessment of Physical Activity Score, Strength and Flexibility",
- gds_total = "Geriatric Depression Score",
- takes_BP_meds = "Taking Blood Pressure Medications at Baseline",
- has_htn = "Hypertension",
- cdx_dep = "Depression",
- cdx_cog = "Mild Cognitive Impairment",
- cdx_dyslipid = "Dyslipidemia",
- cdx_cvd = "Cardiovascular Disease",
- cdx_dm = "Diabetes",
- ldl = "LDL (mg/dL)",
- gluc = "Glucose (mg/dL)",
- a1c = "Hemoglobin A1c (%)",
- egfr_nonaa = "eGFR (mL/min/1.73m^2)",
- choltot = "Total Cholesterol (mg/dL)",
- apoe4_positivity = "APOE4 Allele Positive",
- wmhv_2 = "White Matter Hyperintensity Volume (cm^3)",
- absuvr_2 = "Global Amyloid-PET SUVR",
- taumedtempsuvr_2 = "MTL Tau-PET SUVR",
- ctmetaroi_2 = "AD meta-ROI Cortical Thickness (mm)",
- icv_1_cm3 = "Intracranial Volume (cm^3)"),
- missing = "no")
- tbl1_wmhv
- # Cross-tab of race/ethnicity and HTN diagnosis among those with WMHV at visit 2
- wmhv <- causmed2 %>% filter(haswmhv2 == 1)
- tab_xtab(var.row = as.factor(wmhv$has_htn),
- var.col = as.factor(wmhv$ethnicity),
- show.row.prc = TRUE,
- show.col.prc = TRUE,
- show.na = TRUE)
- ```
- # Table 1, for those with amyloid PET at visit 2
- ```{r table 1 ab, include = FALSE}
- tbl1_ab <- causmed2 %>%
- filter(hasabv2_fct == "Has Amyloid-PET at Visit 2") %>%
- tbl_summary(include = c(# demographics
- age_1, gender_fct, agediff12,
- # social
- edu, hasnoinsurance, income, socsupptot,
- # clinical/behavioral variables
- smkever, bmi, sbpavg, dbpavg, rapa_1_total,
- rapa_2_total, gds_total, takes_BP_meds, has_htn,
- # medical history
- cdx_dep, cdx_cog, cdx_dyslipid, cdx_cvd, cdx_dm,
- # labs
- ldl, gluc, a1c, egfr_nonaa, choltot,
- apoe4_positivity,
- # imaging vars
- wmhv_2, absuvr_2, taumedtempsuvr_2, ctmetaroi_2,
- icv_1_cm3),
- by = ethnicity,
- type = list(
- age_1 ~ "continuous",
- gender_fct ~ "categorical",
- edu ~ "continuous",
- agediff12 ~ "continuous",
- hasnoinsurance ~ "dichotomous",
- income ~ "continuous",
- socsupptot ~ "continuous",
- smkever ~ "dichotomous",
- bmi ~ "continuous",
- sbpavg ~ "continuous",
- dbpavg ~ "continuous",
- rapa_1_total ~ "continuous",
- rapa_2_total ~ "continuous",
- gds_total ~ "continuous",
- takes_BP_meds ~ "dichotomous",
- has_htn ~ "dichotomous",
- cdx_dep ~ "dichotomous",
- cdx_cog ~ "dichotomous",
- cdx_dyslipid ~ "dichotomous",
- cdx_cvd ~ "dichotomous",
- cdx_dm ~ "dichotomous",
- ldl ~ "continuous",
- gluc ~ "continuous",
- a1c ~ "continuous",
- egfr_nonaa ~ "continuous",
- choltot ~ "continuous",
- apoe4_positivity ~ "dichotomous",
- wmhv_2 ~ "continuous",
- absuvr_2 ~ "continuous",
- taumedtempsuvr_2 ~ "continuous",
- ctmetaroi_2 ~ "continuous",
- icv_1_cm3 ~ "continuous"),
- value = list(
- hasnoinsurance ~ 1,
- takes_BP_meds ~ 1,
- has_htn ~ 1,
- cdx_dep ~ 1,
- cdx_cog ~ 1,
- cdx_dyslipid ~ 1,
- cdx_cvd ~ 1,
- cdx_dm ~ 1,
- apoe4_positivity ~ 1),
- statistic = list(
- all_continuous() ~ "{mean} ({sd})",
- all_dichotomous() ~ "{n} ({p}%)",
- all_categorical() ~ "{n} ({p}%)",
- wmhv_2 ~ "{median} ({p25}, {p75})",
- absuvr_2 ~ "{median} ({p25}, {p75})",
- taumedtempsuvr_2 ~ "{median} ({p25}, {p75})"),
- label = list(
- age_1 = "Age At Baseline (Years)",
- gender_fct = "Sex/Gender",
- edu = "Education (Years)",
- agediff12 = "Years Between Visit 1 and 2",
- hasnoinsurance = "Has No Insurance",
- income = "Income (Dollars)",
- socsupptot = "Social Support Score",
- smkever = "Ever Smoker",
- bmi = "Body Mass Index",
- sbpavg = "Systolic Blood Pressure (mmHg)",
- dbpavg = "Diastolic Blood Pressure (mmHg)",
- rapa_1_total = "Rapid Assessment of Physical Activity Score, Aerobic",
- rapa_2_total = "Rapid Assessment of Physical Activity Score, Strength and Flexibility",
- gds_total = "Geriatric Depression Score",
- takes_BP_meds = "Taking Blood Pressure Medications at Baseline",
- has_htn = "Hypertension",
- cdx_dep = "Depression",
- cdx_cog = "Mild Cognitive Impairment",
- cdx_dyslipid = "Dyslipidemia",
- cdx_cvd = "Cardiovascular Disease",
- cdx_dm = "Diabetes",
- ldl = "LDL (mg/dL)",
- gluc = "Glucose (mg/dL)",
- a1c = "Hemoglobin A1c (%)",
- egfr_nonaa = "eGFR (mL/min/1.73m^2)",
- choltot = "Total Cholesterol (mg/dL)",
- apoe4_positivity = "APOE4 Allele Positive",
- wmhv_2 = "White Matter Hyperintensity Volume (cm^3)",
- absuvr_2 = "Global Amyloid-PET SUVR",
- taumedtempsuvr_2 = "MTL Tau-PET SUVR",
- ctmetaroi_2 = "AD meta-ROI Cortical Thickness (mm)",
- icv_1_cm3 = "Intracranial Volume (cm^3)"),
- missing = "no")
- tbl1_ab
- # Cross-tab of race/ethnicity and HTN diagnosis among those with WMHV at visit 2
- ab <- causmed2 %>% filter(hasabv2 == 1)
- tab_xtab(var.row = as.factor(ab$has_htn),
- var.col = as.factor(ab$ethnicity),
- show.row.prc = TRUE,
- show.col.prc = TRUE,
- show.na = TRUE)
- ```
- # Table 1, for those with MTL Tau-PET at visit 2
- ```{r table 1 wmhv, include = FALSE}
- tbl1_mttau <- causmed2 %>%
- filter(hasmttau2_fct == "Has MTL Tau-PET at Visit 2") %>%
- tbl_summary(include = c(# demographics
- age_1, gender_fct, agediff12,
- # social
- edu, hasnoinsurance, income, socsupptot,
- # clinical/behavioral variables
- smkever, bmi, sbpavg, dbpavg, rapa_1_total,
- rapa_2_total, gds_total, takes_BP_meds, has_htn,
- # medical history
- cdx_dep, cdx_cog, cdx_dyslipid, cdx_cvd, cdx_dm,
- # labs
- ldl, gluc, a1c, egfr_nonaa, choltot,
- apoe4_positivity,
- # imaging vars
- wmhv_2, absuvr_2, taumedtempsuvr_2, ctmetaroi_2,
- icv_1_cm3),
- by = ethnicity,
- type = list(
- age_1 ~ "continuous",
- gender_fct ~ "categorical",
- edu ~ "continuous",
- agediff12 ~ "continuous",
- hasnoinsurance ~ "dichotomous",
- income ~ "continuous",
- socsupptot ~ "continuous",
- smkever ~ "dichotomous",
- bmi ~ "continuous",
- sbpavg ~ "continuous",
- dbpavg ~ "continuous",
- rapa_1_total ~ "continuous",
- rapa_2_total ~ "continuous",
- gds_total ~ "continuous",
- takes_BP_meds ~ "dichotomous",
- has_htn ~ "dichotomous",
- cdx_dep ~ "dichotomous",
- cdx_cog ~ "dichotomous",
- cdx_dyslipid ~ "dichotomous",
- cdx_cvd ~ "dichotomous",
- cdx_dm ~ "dichotomous",
- ldl ~ "continuous",
- gluc ~ "continuous",
- a1c ~ "continuous",
- egfr_nonaa ~ "continuous",
- choltot ~ "continuous",
- apoe4_positivity ~ "dichotomous",
- wmhv_2 ~ "continuous",
- absuvr_2 ~ "continuous",
- taumedtempsuvr_2 ~ "continuous",
- ctmetaroi_2 ~ "continuous",
- icv_1_cm3 ~ "continuous"),
- value = list(
- hasnoinsurance ~ 1,
- takes_BP_meds ~ 1,
- has_htn ~ 1,
- cdx_dep ~ 1,
- cdx_cog ~ 1,
- cdx_dyslipid ~ 1,
- cdx_cvd ~ 1,
- cdx_dm ~ 1,
- apoe4_positivity ~ 1),
- statistic = list(
- all_continuous() ~ "{mean} ({sd})",
- all_dichotomous() ~ "{n} ({p}%)",
- all_categorical() ~ "{n} ({p}%)",
- wmhv_2 ~ "{median} ({p25}, {p75})",
- absuvr_2 ~ "{median} ({p25}, {p75})",
- taumedtempsuvr_2 ~ "{median} ({p25}, {p75})"),
- label = list(
- age_1 = "Age At Baseline (Years)",
- gender_fct = "Sex/Gender",
- edu = "Education (Years)",
- agediff12 = "Years Between Visit 1 and 2",
- hasnoinsurance = "Has No Insurance",
- income = "Income (Dollars)",
- socsupptot = "Social Support Score",
- smkever = "Ever Smoker",
- bmi = "Body Mass Index",
- sbpavg = "Systolic Blood Pressure (mmHg)",
- dbpavg = "Diastolic Blood Pressure (mmHg)",
- rapa_1_total = "Rapid Assessment of Physical Activity Score, Aerobic",
- rapa_2_total = "Rapid Assessment of Physical Activity Score, Strength and Flexibility",
- gds_total = "Geriatric Depression Score",
- takes_BP_meds = "Taking Blood Pressure Medications at Baseline",
- has_htn = "Hypertension",
- cdx_dep = "Depression",
- cdx_cog = "Mild Cognitive Impairment",
- cdx_dyslipid = "Dyslipidemia",
- cdx_cvd = "Cardiovascular Disease",
- cdx_dm = "Diabetes",
- ldl = "LDL (mg/dL)",
- gluc = "Glucose (mg/dL)",
- a1c = "Hemoglobin A1c (%)",
- egfr_nonaa = "eGFR (mL/min/1.73m^2)",
- choltot = "Total Cholesterol (mg/dL)",
- apoe4_positivity = "APOE4 Allele Positive",
- wmhv_2 = "White Matter Hyperintensity Volume (cm^3)",
- absuvr_2 = "Global Amyloid-PET SUVR",
- taumedtempsuvr_2 = "MTL Tau-PET SUVR",
- ctmetaroi_2 = "AD meta-ROI Cortical Thickness (mm)",
- icv_1_cm3 = "Intracranial Volume (cm^3)"),
- missing = "no")
- tbl1_mttau
- # Cross-tab of race/ethnicity and HTN diagnosis among those with tau at visit 2
- tau <- causmed2 %>% filter(hasmttauv2 == 1)
- tab_xtab(var.row = as.factor(tau$has_htn),
- var.col = as.factor(tau$ethnicity),
- show.row.prc = TRUE,
- show.col.prc = TRUE,
- show.na = TRUE)
- ```
- # Table 1, for those with AD meta-ROI CT at visit 2
- ```{r table 1 wmhv, include = FALSE}
- tbl1_adct <- causmed2 %>%
- filter(hasctv2_fct == "Has AD meta-ROI CT at Visit 2") %>%
- tbl_summary(include = c(# demographics
- age_1, gender_fct, agediff12,
- # social
- edu, hasnoinsurance, income, socsupptot,
- # clinical/behavioral variables
- smkever, bmi, sbpavg, dbpavg, rapa_1_total,
- rapa_2_total, gds_total, takes_BP_meds, has_htn,
- # medical history
- cdx_dep, cdx_cog, cdx_dyslipid, cdx_cvd, cdx_dm,
- # labs
- ldl, gluc, a1c, egfr_nonaa, choltot,
- apoe4_positivity,
- # imaging vars
- wmhv_2, absuvr_2, taumedtempsuvr_2, ctmetaroi_2,
- icv_1_cm3),
- by = ethnicity,
- type = list(
- age_1 ~ "continuous",
- gender_fct ~ "categorical",
- edu ~ "continuous",
- agediff12 ~ "continuous",
- hasnoinsurance ~ "dichotomous",
- income ~ "continuous",
- socsupptot ~ "continuous",
- smkever ~ "dichotomous",
- bmi ~ "continuous",
- sbpavg ~ "continuous",
- dbpavg ~ "continuous",
- rapa_1_total ~ "continuous",
- rapa_2_total ~ "continuous",
- gds_total ~ "continuous",
- takes_BP_meds ~ "dichotomous",
- has_htn ~ "dichotomous",
- cdx_dep ~ "dichotomous",
- cdx_cog ~ "dichotomous",
- cdx_dyslipid ~ "dichotomous",
- cdx_cvd ~ "dichotomous",
- cdx_dm ~ "dichotomous",
- ldl ~ "continuous",
- gluc ~ "continuous",
- a1c ~ "continuous",
- egfr_nonaa ~ "continuous",
- choltot ~ "continuous",
- apoe4_positivity ~ "dichotomous",
- wmhv_2 ~ "continuous",
- absuvr_2 ~ "continuous",
- taumedtempsuvr_2 ~ "continuous",
- ctmetaroi_2 ~ "continuous",
- icv_1_cm3 ~ "continuous"),
- value = list(
- hasnoinsurance ~ 1,
- takes_BP_meds ~ 1,
- has_htn ~ 1,
- cdx_dep ~ 1,
- cdx_cog ~ 1,
- cdx_dyslipid ~ 1,
- cdx_cvd ~ 1,
- cdx_dm ~ 1,
- apoe4_positivity ~ 1),
- statistic = list(
- all_continuous() ~ "{mean} ({sd})",
- all_dichotomous() ~ "{n} ({p}%)",
- all_categorical() ~ "{n} ({p}%)",
- wmhv_2 ~ "{median} ({p25}, {p75})",
- absuvr_2 ~ "{median} ({p25}, {p75})",
- taumedtempsuvr_2 ~ "{median} ({p25}, {p75})"),
- label = list(
- age_1 = "Age At Baseline (Years)",
- gender_fct = "Sex/Gender",
- edu = "Education (Years)",
- agediff12 = "Years Between Visit 1 and 2",
- hasnoinsurance = "Has No Insurance",
- income = "Income (Dollars)",
- socsupptot = "Social Support Score",
- smkever = "Ever Smoker",
- bmi = "Body Mass Index",
- sbpavg = "Systolic Blood Pressure (mmHg)",
- dbpavg = "Diastolic Blood Pressure (mmHg)",
- rapa_1_total = "Rapid Assessment of Physical Activity Score, Aerobic",
- rapa_2_total = "Rapid Assessment of Physical Activity Score, Strength and Flexibility",
- gds_total = "Geriatric Depression Score",
- takes_BP_meds = "Taking Blood Pressure Medications at Baseline",
- has_htn = "Hypertension",
- cdx_dep = "Depression",
- cdx_cog = "Mild Cognitive Impairment",
- cdx_dyslipid = "Dyslipidemia",
- cdx_cvd = "Cardiovascular Disease",
- cdx_dm = "Diabetes",
- ldl = "LDL (mg/dL)",
- gluc = "Glucose (mg/dL)",
- a1c = "Hemoglobin A1c (%)",
- egfr_nonaa = "eGFR (mL/min/1.73m^2)",
- choltot = "Total Cholesterol (mg/dL)",
- apoe4_positivity = "APOE4 Allele Positive",
- wmhv_2 = "White Matter Hyperintensity Volume (cm^3)",
- absuvr_2 = "Global Amyloid-PET SUVR",
- taumedtempsuvr_2 = "MTL Tau-PET SUVR",
- ctmetaroi_2 = "AD meta-ROI Cortical Thickness (mm)",
- icv_1_cm3 = "Intracranial Volume (cm^3)"),
- missing = "no")
- tbl1_adct
- # Cross-tab of race/ethnicity and HTN diagnosis among those with adct at visit 2
- ct <- causmed2 %>% filter(hasctv2 == 1)
- tab_xtab(var.row = as.factor(ct$has_htn),
- var.col = as.factor(ct$ethnicity),
- show.row.prc = TRUE,
- show.col.prc = TRUE,
- show.na = TRUE)
- ```
- # Merging table 1 across all samples
- ```{r table 1 testing, echo = T, results = 'hide'}
- tbl1_everything <- tbl_merge(tbls =
- list(tbl1_ab,
- tbl1_mttau,
- tbl1_adct,
- tbl1_wmhv ),
- tab_spanner = c("**Amyloid PET (n=679)**",
- "**MTL-Tau (n=408)**",
- "**AD meta-ROI CT (n=1005)**",
- "**WMHV (n=1333)**"))
- tbl1_everything
- # saving output
- tbl1_everything %>%
- as_gt() %>%
- gtsave("./results/tbl1_everything.docx")
- # Cross-tab of race/ethnicity and HTN diagnosis among those with any imaging at visit 2
- any <- causmed2 %>% filter(haswmhv2 == 1 | hasabv2 == 1 | hasmttauv2 == 1 | hasctv2 == 1) #n=1347
- tab_xtab(var.row = as.factor(any$has_htn),
- var.col = as.factor(any$ethnicity),
- #show.row.prc = TRUE,
- show.col.prc = TRUE,
- show.na = TRUE)
- # SBP stratified by race ethnicity
- describeBy(any$sbpavg, any$ethnicity)
- ```
- # Heatmap of correlation matrix of covariates
- ```{r corr}
- # Taking a look at all the non-categorical variables
- cov <- causmed2 %>%
- select(# demographics
- age_1, agediff12,
- # social
- edu, income, socsupptot,
- # clinical/behavioral variables
- smkever, bmi, sbpavg, dbpavg, rapa_1_total,
- rapa_2_total, gds_total,
- # labs
- ldl, gluc, a1c, egfr_nonaa, choltot,
- # imaging vars
- wmhv_2, absuvr_2, taumedtempsuvr_2, ctmetaroi_2,
- icv_1_cm3)
- str(cov)
- cor_mat <- cor(cov, use = "complete.obs")
- cor_p <- ggcorrplot(cor_mat, hc.order = FALSE, type = "lower",
- outline.col = "white",
- ggtheme = ggplot2::theme_gray,
- colors = c("#af8dc3", "white", "#7fbf7b"))
- cor_p
- ggsave("./results/cor_plot.jpeg",
- dpi = 400,
- plot = cor_p)
- ```
2. descriptive_11 18 25.Rmd at commit 2b1ca73, no license · at the source
Overview
- Department of Neurology, University of California, San Francisco
- Department of Epidemiology and Biostatistics, University of California, San Francisco
- Mark and Mary Stevens Neuroimaging and Informatics Institute, Keck School of Medicine, University of Southern California, Marina Del Rey; and
- Department of Psychiatry and Behavioral Sciences, University of California, San Francisco
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
2b1ca7397e214766fa4914b23bdbd9bae0aed3bf, 19 December 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
12 files
- 1. create dataset_11 18 25.Rmd, R, 2,793 lines
- 2. descriptive_11 18 25.Rmd, R, 738 lines, 3 matches
- 3. cross-sec_11 18 25.Rmd, R, 704 lines
- 3a. CM_HTN_wmhv_11 20 25.Rmd, R, 924 lines
- 3b. CM_HTN_amyloid_11 20 25.Rmd, R, 949 lines
- 3c. CM_HTN_mttau_11 20 25.Rmd, R, 951 lines
- 3d. CM_HTN_adct_11 20 25.Rmd, R, 948 lines
- 4a. CM_SBP_wmhv_12 09 25.Rmd, R, 934 lines
- 4b. CM_SBP_amyloid_12 09 25.Rmd, R, 922 lines
- 4c. CM_SBP_mttau_12 09 25.Rmd, R, 924 lines
- 4d. CM_SBP_adct_12 09 25.Rmd, R, 926 lines
- README.md, Text, 3 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:
- 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:
- it points to the authors' code: michelle-caunca/
HABS_CM_RaceEthHTNImg
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://
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 = {American Academy of Neurology},
issn = {0028-3878},
doi = {10.1212/
url = {https://
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/
VL - 107
IS - 1
SP - e218164
SN - 0028-3878
PB - American Academy of Neurology
DO - 10.1212/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1212/
"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":
"volume": "107",
"issue": "1",
"page": "e218164",
"DOI": "10.1212/
"PMID": "42284535",
"PMCID": "PMC13312934",
"ISSN": "0028-3878",
"publisher": "American Academy of Neurology",
"URL": "https://
"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.70733 [code]
- Neuroimaging markers of dementia across race/
ethnicity and sex/ gender using an intersectional approach within the HABS-HD cohort. Journal: Alzheimer's & dementia : the journal of the Alzheimer's AssociationIn common: broom, psych, tidyverse, structural MRI / diffusion, clinical / translational, 13 references - [2] doi:10.1162/imag_a_00188 [code]
- Progression of white matter hyperintensities is related to blood pressure increases and global cognitive decline - A registered report.Journal: Imaging neuroscience (Cambridge, Mass.)In common: broom, psych, ggplot2, 1 other tool, structural MRI / diffusion, 2 references
- [3] doi:10.1002/alz.71126
- Neuroimaging markers and cognition in cognitively unimpaired older Latinos from the Harvard Aging Brain Study.Journal: Alzheimer's & dementia : the journal of the Alzheimer's AssociationIn common: structural MRI / diffusion, 5 references
- [4] 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 AssociationIn common: broom, ggplot2, tidyverse, clinical / translational, 3 references
- [5] doi:10.1016/j.bbi.2024.05.014 [code]
- Examining longitudinal associations between prenatal exposure to infections and child brain morphology.Journal: Brain, behavior, and immunityIn common: broom, reshape2, ggplot2, 1 other tool, structural MRI / diffusion, other condition, 1 reference
- [6] doi:10.64898/2026.03.20.713139 [code]
- Dissociable contributions of cortical thickness and surface area to cognitive ageing: evidence from multiple longitudinal cohortsJournal: bioRxiv (preprint)In common: broom, psych, ggplot2, 1 other tool, structural MRI / diffusion, 1 reference
- [7] doi:10.1038/s41467-026-70832-2 [code]
- Characterizing spatiotemporal white matter hyperintensity pathophysiology in vivo to disentangle vascular and neurodegenerative contributions.Journal: Nature communicationsIn common: broom, reshape2, ggplot2, 1 other tool, structural MRI / diffusion, other condition, 1 reference
- [8] doi:10.1016/j.nicl.2025.103796 [code]
- Exploring the effect of multi-modal intervention against cognitive decline on atrophy and small vessel disease imaging markers in the AgeWell.de imaging study.Journal: NeuroImage. ClinicalIn common: psych, ggplot2, tidyverse, structural MRI / diffusion, clinical / translational, 2 references
- [9] doi:10.1038/s43856-023-00333-6 [code]
- Quantification of race/
ethnicity representation in Alzheimer's disease neuroimaging research in the USA: a systematic review. Journal: Communications medicineIn common: ggplot2, tidyverse, clinical / translational, 3 references - [10] doi:10.1093/ageing/afag263 [code]
- Cardiometabolic medication exposures and cognitive outcomes in Alzheimer's disease.Journal: Age and ageingIn common: broom, psych, ggplot2, 1 other tool, 1 reference
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, 11 scripts, and 3 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:e7c7b273df3b4724…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1212/wnl.0000000000218164)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1212/wnl.0000000000218164.svg
:target: https://openscicode.org/badge/doi/10.1212/wnl.0000000000218164
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1212/wnl.0000000000218164"><img src="https://openscicode.org/badge/doi/10.1212/wnl.0000000000218164.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge 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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
