Chronic stress, social support, and domain-specific cognitive decline in HABS-HD.
One block of code here has 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 2 matches
- [1] § METHODS › Cognitive assessment and diagnostic classification ↔ HABSHD_Github.Rmd, lines 70 to 84 · score 0.97 · Spanish English Verbal, Mini Mental State, WMS III, Logical Memory, Digit Symbol Substitution, Digit Span · block
oscr:b:478H4ZT7CTSGZ-B· Report a mismatch - [2] § METHODS › Cognitive assessment and diagnostic classification ↔ HABSHD_Github.Rmd, lines 70 to 84 · score 0.94 · WMS III Logical, WMS III Digit, Delayed Recall, Immediate Recall, Digit Symbol Substitution, Digit Span · block
oscr:b:478H4ZT7CTSGZ-B· 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 · 1,568 lines · 60 KB · no license · 2 matches
- ---
- title: "HABS-HD_2026 - Github"
- output: html_document
- date: "2026-05-01"
- ---
- ######CLEANING STEPS#######
- #Removing those with dementia at baseline (N=243) and all their subsequent visits
- ```{r}
- library(dplyr)
- # Find Med_IDs with CDX_Cog == 2 at Visit_ID == 1
- ids_to_remove <- df %>%
- filter(Visit_ID == 1, CDX_Cog == 2) %>%
- pull(Med_ID)
- # Remove all rows for these Med_IDs (all visits)
- df_nodementia <- df %>%
- filter(!Med_ID %in% ids_to_remove)
- #View(df_nodementia)
- #N=6360
- ```
- #Setting factors for comorbidities
- ```{r}
- # Convert gender to factor and relevel
- #IMH_Diabetes
- df_nodementia$Baseline_IMH_Diabetes <- factor(
- df_nodementia$Baseline_IMH_Diabetes,
- levels = c(0, 1),
- labels = c("No", "Yes")
- )
- df_nodementia$Baseline_IMH_Diabetes <- relevel(
- df_nodementia$Baseline_IMH_Diabetes, ref = "No"
- )
- #IMH_HeartAttack
- df_nodementia$Baseline_IMH_HeartAttack<- factor(
- df_nodementia$Baseline_IMH_HeartAttack,
- levels = c(0, 1),
- labels = c("No", "Yes")
- )
- df_nodementia$Baseline_IMH_HeartAttack <- relevel(
- df_nodementia$Baseline_IMH_HeartAttack, ref = "No"
- )
- #IMH_KidneyDisease
- df_nodementia$Baseline_IMH_KidneyDisease<- factor(
- df_nodementia$Baseline_IMH_KidneyDisease,
- levels = c(0, 1),
- labels = c("No", "Yes")
- )
- df_nodementia$Baseline_IMH_KidneyDisease <- relevel(
- df_nodementia$Baseline_IMH_KidneyDisease, ref = "No"
- )
- #IMH_Stroke
- df_nodementia$Baseline_IMH_Stroke<- factor(
- df_nodementia$Baseline_IMH_Stroke,
- levels = c(0, 1),
- labels = c("No", "Yes")
- )
- df_nodementia$Baseline_IMH_Stroke<- relevel(
- df_nodementia$Baseline_IMH_Stroke, ref = "No"
- )
- #View(df_nodementia)
- ```
- #Creating Cognitive Domains
- ```{r}
- #Global: Mini-Mental State Examination (MMSE)
- #Attention: WMS-III Digit Span, Trail Making Test A
- #Memory: Spanish-English Verbal Learning Test (SEVLT, Immediate Recall & Delayed Recall); WMS-III Logical Memory (Immediate & Delayed)
- #Executive: Digit Symbol Substitution, Trail Making Test B
- #Language: Animal Naming, FAS
- df_nodementia$AttentionDomain <- rowMeans(df_nodementia[, c("DS_ZScore", "Trails_A_ZScore")], na.rm = TRUE)
- df_nodementia$MemoryDomain <- rowMeans(df_nodementia[, c("SEVLT_T1235_ZScore", "SEVLT_DR_ZScore" , "LM1_AB_ZScore", "LM2_AB_ZScore")], na.rm = TRUE)
- df_nodementia$ExecutiveDomain <- rowMeans(df_nodementia[, c("Digit_Symbol_Substitution_ZScore", "Trails_B_ZScore")], na.rm = TRUE)
- df_nodementia$LanguageDomain <- rowMeans(df_nodementia[, c("FAS_ZScore" , "Animal_ZScore")], na.rm = TRUE)
- #View(df_nodementia)
- ```
- #Creating Baseline Dataset
- ```{r}
- Baseline_df_nodementia <- df_nodementia %>%
- filter(Visit_ID == 1)
- #View(Baseline_df_nodementia )
- #3875
- ```
- #Downloading and Saving BaselineSheet
- ```{r}
- library(writexl)
- write_xlsx(Baseline_df_nodementia, "Baseline_df_nodementia.xlsx")
- ```
- #Renaming Baseline Variables
- ```{r}
- Baseline_df_nodementia <- Baseline_df_nodementia %>%
- # Add Baseline_ prefix to a long list of variables
- rename_with(.fn = ~paste0("Baseline_", .),
- .cols = c(
- Visit_ID, Visit_Date, Ethnicity, Age, ID_Gender, ID_Education, CDX_Cog, PSWQ_Total,
- SocialSupport_Total, ChronicStress_Total, GDS_Total,
- SEVLT_T1235_ZScore, SEVLT_DR_ZScore, LM1_AB_ZScore, LM2_AB_ZScore,
- Digit_Symbol_Substitution_ZScore, Trails_B_ZScore,
- FAS_ZScore, Animal_ZScore,
- CDP_Myocardial, CDP_HeartDisease, CDP_Stroke, CDP_MiniStroke, CDR_Sum, CDR_Global, MMSE_Total,
- PSWQ_1, PSWQ_2, PSWQ_3, PSWQ_4, PSWQ_5, PSWQ_6, PSWQ_7, PSWQ_8, PSWQ_9, PSWQ_10, PSWQ_11, PSWQ_12, PSWQ_13, PSWQ_14, PSWQ_15, PSWQ_16,
- SocialSupport_1, SocialSupport_2, SocialSupport_3, SocialSupport_4, SocialSupport_5, SocialSupport_6, SocialSupport_7, SocialSupport_8, SocialSupport_9,
- SocialSupport_10, SocialSupport_11, SocialSupport_12,
- ChronicStress_1, ChronicStress_1a, ChronicStress_1b, ChronicStress_2, ChronicStress_2a, ChronicStress_2b, ChronicStress_3, ChronicStress_3a, ChronicStress_3b,
- ChronicStress_4, ChronicStress_4a, ChronicStress_4b, ChronicStress_5, ChronicStress_5a, ChronicStress_5b, ChronicStress_6, ChronicStress_6a, ChronicStress_6b,
- ChronicStress_7, ChronicStress_7a, ChronicStress_7b, ChronicStress_8, ChronicStress_8a, ChronicStress_8b, ChronicStress_8c,
- SEVLT_T1_Total, SEVLT_T2_Total, SEVLT_T3_Total, SEVLT_T5_Total, SEVLT_T1235_Total, SEVLT_DR_Total,
- LM1_A_Total, LM1_B1_Total, LM1_B2_Total, LM1_AB_Total, LM2_A_Total, LM2_B_Total, LM2_AB_Total,
- DSF_Total, DSB_Total, DS_Total, DS_ZScore,
- Trails_A_Time, Trails_A_Errors, Trails_A_ZScore, Trails_B_Time, Trails_B_Errors, FAS_Total,
- GDS_Category, GDS_Score_D, GDS_Score_M, GDS_Score_A, GDS_Score_C,
- Animal_Total, Digit_Symbol_Substitution,
- CDX_Hypertension, CDX_Dyslipidemia, CDX_Diabetes, CDX_Hyperthyroid, CDX_Hypothyroid, CDX_CVD, CDX_Anemia, CDX_VitaminB12, CDX_Depression,
- CDX_Anxiety, CDX_Alcohol, CDX_Tobacco,
- AttentionDomain, MemoryDomain, ExecutiveDomain, LanguageDomain
- )
- )
- #View(Baseline_df_nodementia)
- ```
- #Merging back Baselinesheet with Full longitudinal sheet
- ```{r}
- library(dplyr)
- # Step 1: Merge baseline data into longitudinal follow-up dataset by Med_ID
- FULLMERGE_df_nodementia <- df_nodementia %>%
- left_join(
- Baseline_df_nodementia,
- by = "Med_ID"
- )
- #View(FULLMERGE_RP_HD_7_Clinical_Cleaned_071025_nodementia)
- #6354
- ```
- #Creating the time variable
- ```{r}
- FULLMERGE_df_nodementia <- FULLMERGE_df_nodementia %>%
- mutate(Time = Age - Baseline_Age)
- #View(FULLMERGE_df_nodementia)
- ```
- ##Table 1 - Baseline Demographics of Participants
- ```{r}
- # Open a file to save the output
- #sink("Table1_Cognition_Release7_Baseline_080525.txt")
- # Load the required package
- library(tableone)
- # Create the table for Visit_ID 1 (Baseline)
- Table1_Cognition_Release7_Baseline_080525 <- CreateTableOne(
- data = Baseline_df_nodementia, # Use the filtered data for baseline
- vars = c("Med_ID", "Baseline_Age", "Baseline_Ethnicity", "Baseline_ID_Gender", "Baseline_ID_Education",
- "Baseline_PSWQ_Total", "Baseline_GDS_Total", "Baseline_CDX_Cog", "Baseline_SocialSupport_Total",
- "Baseline_ChronicStress_Total",
- "Baseline_IMH_Diabetes", "Baseline_IMH_HeartAttack", "Baseline_IMH_KidneyDisease", "Baseline_IMH_Stroke", "Baseline_OM_BMI",
- "Baseline_AttentionDomain", "Baseline_MemoryDomain", "Baseline_LanguageDomain", "Baseline_ExecutiveDomain"),
- test = TRUE,
- includeNA = TRUE
- )
- # Print the table to the output file
- print(Table1_Cognition_Release7_Baseline_080525)
- # Close the sink (finish writing to the file)
- #sink()
- ```
- #eTable 1 - Baseline Demographics of participants; Stratified by Gender
- ```{r}
- # Table 1 Stratified by Gender --------------------------------------------
- # Set the output file name
- output_file <- "Table1_BaselineDemographics_strgender_Release7_CognitiveDomains_UPDATED080525.txt"
- #sink(output_file)
- table1_STRGender_UPDATED080525 <- CreateTableOne(
- data = Baseline_df_nodementia,
- vars = c("Med_ID", "Baseline_Age", "Baseline_Ethnicity", "Baseline_ID_Education",
- "Baseline_PSWQ_Total", "Baseline_GDS_Total", "Baseline_CDX_Cog", "Baseline_SocialSupport_Total",
- "Baseline_ChronicStress_Total",
- "Baseline_IMH_Diabetes", "Baseline_IMH_HeartAttack", "Baseline_IMH_KidneyDisease", "Baseline_IMH_Stroke", "Baseline_OM_BMI",
- "Baseline_AttentionDomain", "Baseline_MemoryDomain", "Baseline_LanguageDomain", "Baseline_ExecutiveDomain"),
- strata = "Baseline_ID_Gender",
- test = TRUE,
- includeNA = TRUE
- )
- # Print the updated table
- print(table1_STRGender_UPDATED080525)
- #sink()
- ```
- #eTable 2 - Baseline Demographics of participants; Stratified by Race/Ethnicity
- ```{r}
- # Table 1 Stratified by Race --------------------------------------------
- # Set the output file name
- output_file <- "Table1_BaselineDemographics_strrace_Release7_CognitiveDomains_UPDATED080525.txt"
- sink(output_file)
- table1_STRRace_UPDATED080525 <- CreateTableOne(
- data = Baseline_df_nodementia,
- vars = c("Med_ID", "Baseline_Age", "Baseline_ID_Gender", "Baseline_ID_Education",
- "Baseline_PSWQ_Total", "Baseline_GDS_Total", "Baseline_CDX_Cog", "Baseline_SocialSupport_Total",
- "Baseline_ChronicStress_Total",
- "Baseline_IMH_Diabetes", "Baseline_IMH_HeartAttack", "Baseline_IMH_KidneyDisease", "Baseline_IMH_Stroke", "Baseline_OM_BMI",
- "Baseline_AttentionDomain", "Baseline_MemoryDomain", "Baseline_LanguageDomain", "Baseline_ExecutiveDomain"),
- strata = "Baseline_Ethnicity",
- test = TRUE,
- includeNA = TRUE
- )
- # Print the updated table
- print(table1_STRRace_UPDATED080525)
- sink()
- ```
- ##Setting reference groups for gender & race/ethnicity
- ```{r}
- # Convert to an unordered factor
- FULLMERGE_df_nodementia$Baseline_ID_Gender <- as.factor(FULLMERGE_df_nodementia$Baseline_ID_Gender)
- # Relevel to make "Non-Hispanic White" the reference group
- FULLMERGE_df_nodementia$Baseline_ID_Gender <- relevel(FULLMERGE_df_nodementia$Baseline_ID_Gender, ref = "Males")
- FULLMERGE_df_nodementia$Baseline_Ethnicity <- as.factor(FULLMERGE_df_nodementia$Baseline_Ethnicity)
- # Relevel to make "Non-Hispanic White" the reference group
- FULLMERGE_df_nodementia$Baseline_Ethnicity <- relevel(FULLMERGE_df_nodementia$Baseline_Ethnicity, ref = "White")
- ```
- ###Mixed Effects Model###
- ####CHRONIC STRESS#####
- #Table 2 - Longitudinal Associations of Baseline Chronic Stress, Social Support, and Domain-Specific Cognitive Z-scores (Unadjusted)
- #eTable 4 - Longitudinal Associations of Baseline Chronic Stress and Domain-Specific Cognitive Z-scores (Unadjusted)
- ##Chronic Stress - Unadjusted
- ```{r}
- library(dplyr)
- #library(lme4)
- library(lmerTest) #this package prints p values
- #sink("Mixed_Effect_Models_071225_ChronicStress_lme4_pvaluesUPDATED072125.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_chronicstress_unadjusted <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_ChronicStress_Total + Time + Baseline_ChronicStress_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_chronicstress_unadjusted [[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- #sink()
- ```
- #Table 2 - Longitudinal Associations of Baseline Chronic Stress, Social Support, and Domain-Specific Cognitive Z-scores (Partial adjusted)
- #eTable 4 - Longitudinal Associations of Baseline Chronic Stress and Domain-Specific Cognitive Z-scores (Partial Adjusted)
- ##Chronic Stress - Partial Adjusted
- ```{r}
- library(dplyr)
- library(lme4)
- library(lmerTest) #this package prints p values
- #sink("Mixed_Effect_Models_071225_ChronicStress_adjusted_w_depression_lme4_pvalues_UPDATED072725.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_chronicstress_partialadjusted <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_ID_Gender + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_ChronicStress_Total + Time + Baseline_ChronicStress_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_chronicstress_partialadjusted [[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- #sink()
- ```
- #Table 2 - Longitudinal Associations of Baseline Chronic Stress, Social Support, and Domain-Specific Cognitive Z-scores (Fully adjusted)
- #eTable 4 - Longitudinal Associations of Baseline Chronic Stress and Domain-Specific Cognitive Z-scores (Fully Adjusted)
- ##Chronic Stress - Fully Adjusted
- ```{r}
- library(dplyr)
- library(lme4)
- library(lmerTest) #this package prints p values
- #sink("Mixed_Effect_Models_071225_ChronicStress_fullyadjusted_lme4_pvalues_UPDATED072725.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_chronicstress_fullyadjusted <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_ID_Gender + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_ChronicStress_Total + Time + Baseline_ChronicStress_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_chronicstress_fullyadjusted[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- #sink()
- ```
- ###Mixed Effects Model###
- ####SOCIAL SUPPORT#####
- #Table 2 - Longitudinal Associations of Baseline Chronic Stress, Social Support, and Domain-Specific Cognitive Z-scores (Unadjusted)
- #eTable 7 - Longitudinal Associations of Baseline Chronic Stress and Domain-Specific Cognitive Z-scores (Unadjusted)
- ##Social Support- Unadjusted
- ```{r}
- library(dplyr)
- library(lme4)
- library(lmerTest) #this package prints p values
- #sink("Mixed_Effect_Models_071225_SocialSupport_lme4_pvalues_UPDATED071625.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_socialsupport_unadjusted<- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_SocialSupport_Total + Time + Baseline_SocialSupport_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_socialsupport_unadjusted[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- #sink()
- ```
- #Table 2 - Longitudinal Associations of Baseline Chronic Stress, Social Support, and Domain-Specific Cognitive Z-scores (Partial adjusted)
- #eTable 7 - Longitudinal Associations of Baseline Chronic Stress and Domain-Specific Cognitive Z-scores (Partial adjusted)
- ##Social Support- Partial Adjusted
- ```{r}
- library(dplyr)
- library(lme4)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_071225_SocialSupport_adjusted_w_depression_lme4_pvalues_UPDATED072725.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_socialsupport_partialadjusted <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_ID_Gender + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_SocialSupport_Total + Time + Baseline_SocialSupport_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_socialsupport_partialadjusted[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #Table 2 - Longitudinal Associations of Baseline Chronic Stress, Social Support, and Domain-Specific Cognitive Z-scores (Fully adjusted)
- #eTable 7 - Longitudinal Associations of Baseline Chronic Stress and Domain-Specific Cognitive Z-scores (Fully adjusted)
- ##Social Support- Fully Adjusted
- ```{r}
- library(dplyr)
- library(lme4)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_071225_SocialSupport_fullyadjusted_lme4_pvalues_UPDATED072725.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_socialsupport_fullyadjusted <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_ID_Gender + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_SocialSupport_Total + Time + Baseline_SocialSupport_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_socialsupport_fullyadjusted[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- ####INTERACTION TERMS###
- #####CHRONIC STRESS######
- ##GENDER##
- #eTable 5- Interaction between Baseline Chronic Stress and Gender in relation to Domain-Specific Cognitive Z-scores (Unadjusted)
- #CS*GENDER*Time (Unadjusted)
- ```{r}
- ##Chronic Stress - Unadjusted - Interaction with Gender
- #_UPDATED071625
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_071225_Release7_ChronicStress_unadjustedgender_UPDATED071625.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_chronicstress_unadjusted_interactiongender <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_ChronicStress_Total + Baseline_ID_Gender + Time + Baseline_ChronicStress_Total*Baseline_ID_Gender*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_chronicstress_unadjusted_interactiongender[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #eTable 5- Interaction between Baseline Chronic Stress and Gender in relation to Domain-Specific Cognitive Z-scores (Partial Adjusted)
- #CS*GENDER*Time (Partial Adjusted)
- ```{r}
- ##Chronic Stress - Adjusted - Interaction with Gender
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_071225_Release7_ChronicStress_adjustedgender_partialadjusted_UPDATED073025.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_chronicstress_partialadjusted_interactiongender <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_ChronicStress_Total + Baseline_ID_Gender + Time + Baseline_ChronicStress_Total*Baseline_ID_Gender*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_chronicstress_partialadjusted_interactiongender[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #eTable 5- Interaction between Baseline Chronic Stress and Gender in relation to Domain-Specific Cognitive Z-scores (Fully Adjusted)
- #CS*GENDER*Time (Fully Adjusted)
- ```{r}
- ##Chronic Stress - Adjusted - Interaction with Gender
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_071225_Release7_ChronicStress_adjustedgender_fullyadjusted_UPDATED073025.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_chronicstress_fullyadjusted_interactiongender <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_ChronicStress_Total + Baseline_ID_Gender + Time + Baseline_ChronicStress_Total*Baseline_ID_Gender*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_chronicstress_fullyadjusted_interactiongender[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- ##RACE##
- #Setting White as the reference group
- ```{r}
- # Convert to an unordered factor
- FULLMERGE_df_nodementia$Baseline_Ethnicity <- as.factor(FULLMERGE_df_nodementia$Baseline_Ethnicity)
- # Relevel to make "Non-Hispanic White" the reference group
- FULLMERGE_df_nodementia$Baseline_Ethnicity <- relevel(FULLMERGE_df_nodementia$Baseline_Ethnicity, ref = "White")
- ```
- #eTable 6 - Interaction between Baseline Chronic Stress and Race/Ethnicity in relation to Domain-Specific Cognitive Z-scores (Unadjusted)
- #CS*Race*Time (unadjusted)
- ```{r}
- ##Chronic Stress - Unadjusted - Interaction with Race
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_071225_ChronicStress_unadjustedrace_r7_UPDATED071625.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_chronicstress_unadjusted_interactionrace <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_ChronicStress_Total + Baseline_Ethnicity + Time + Baseline_ChronicStress_Total*Baseline_Ethnicity*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_chronicstress_unadjusted_interactionrace[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #eTable 6 - Interaction between Baseline Chronic Stress and Race/Ethnicity in relation to Domain-Specific Cognitive Z-scores (Partial Adjusted)
- #CS*Race*Time (Partial Adjusted)
- ```{r}
- ##Chronic Stress - Partially Adjusted w. Depression - Interaction with Race
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_073025_ChronicStress_partialadjustedrace_r7_UPDATED073025.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_chronicstress_partialadjusted_interactionrace <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_PSWQ_Total + Baseline_ID_Gender + Baseline_GDS_Total + Baseline_ChronicStress_Total + Baseline_Ethnicity + Time + Baseline_ChronicStress_Total*Baseline_Ethnicity*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_chronicstress_partialadjusted_interactionrace[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #eTable 6 - Interaction between Baseline Chronic Stress and Race/Ethnicity in relation to Domain-Specific Cognitive Z-scores (Fully Adjusted)
- #CS*Race*Time (Fully Adjusted)
- ```{r}
- ##Chronic Stress - Fully Adjusted - Interaction with Race
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_073025_ChronicStress_fullyadjustedrace_r7_UPDATED073025.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_chronicstress_fullyjusted_interactionrace <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_PSWQ_Total + Baseline_ID_Gender + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_ChronicStress_Total + Baseline_Ethnicity + Time + Baseline_ChronicStress_Total*Baseline_Ethnicity*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_chronicstress_fullyjusted_interactionrace[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- ####INTERACTION TERMS###
- #####SOCIAL SUPPORT######
- ##GENDER##
- #eTable 8 - Interaction between Baseline Social Support and Gender in relation to Domain-Specific Cognitive Z-scores (Unadjusted)
- #SS*GENDER*Time (unadjusted)
- ```{r}
- ##Social Support - Unadjusted - Interaction with Gender
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_071225_Release7_SocialSupport_unadjustedgender_UPDATED071625.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_socialsupport_unadjusted_interactiongender<- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_SocialSupport_Total + Baseline_ID_Gender + Time + Baseline_SocialSupport_Total*Baseline_ID_Gender*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_socialsupport_unadjusted_interactiongender[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #eTable 8 - Interaction between Baseline Social Support and Gender in relation to Domain-Specific Cognitive Z-scores (Partial Adjusted)
- #SS*GENDER*Time (Partial Adjusted)
- ```{r}
- ##Social Support - Adjusted - Interaction with Gender
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_Release7_SocialSupport_partialadjustedgender_UPDATED080525.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_socialsupport_partialadjusted_interactiongender <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_SocialSupport_Total + Baseline_ID_Gender + Time + Baseline_SocialSupport_Total*Baseline_ID_Gender*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_socialsupport_partialadjusted_interactiongender[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #eTable 8 - Interaction between Baseline Social Support and Gender in relation to Domain-Specific Cognitive Z-scores (Fully Adjusted)
- #SS*GENDER*Time (Fully Adjusted)
- ```{r}
- ##Social Support - Adjusted - Interaction with Gender
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_Release7_SocialSupport_fullyadjustedgender_UPDATED080525.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_socialsupport_fullyadjusted_interactiongender <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_SocialSupport_Total + Baseline_ID_Gender + Time + Baseline_SocialSupport_Total*Baseline_ID_Gender*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_socialsupport_fullyadjusted_interactiongender[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- ##RACE###
- #eTable 9 - Interaction between Baseline Social Support and Race/Ethnicity in relation to Domain-Specific Cognitive Z-scores (unadjusted)
- #SS*Race*Time (unadjusted)
- ```{r}
- ##Social Support - Unadjusted - Interaction with Race
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_071225_SocialSupport_unadjustedrace_r7_UPDATED071625.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_socialsupport_unadjusted_interactionrace <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_SocialSupport_Total + Baseline_Ethnicity + Time + Baseline_SocialSupport_Total*Baseline_Ethnicity*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_socialsupport_unadjusted_interactionrace[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #eTable 9 - Interaction between Baseline Social Support and Race/Ethnicity in relation to Domain-Specific Cognitive Z-scores (Partial Adjusted)
- #SS*Race*Time (Partial Adjusted)
- ```{r}
- ##Social Support - Unadjusted - Interaction with Race
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_SocialSupport_partiallyadjustedrace_r7_UPDATED080525.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_socialsupport_partiallyadjusted_interactionrace <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_ID_Gender + Baseline_SocialSupport_Total + Baseline_Ethnicity + Time + Baseline_SocialSupport_Total*Baseline_Ethnicity*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_socialsupport_partiallyadjusted_interactionrace[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #eTable 9 - Interaction between Baseline Social Support and Race/Ethnicity in relation to Domain-Specific Cognitive Z-scores (Fully Adjusted)
- #SS*Race*Time (Fully Adjusted)
- ```{r}
- ##Social Support - Unadjusted - Interaction with Race
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_SocialSupport_fullyadjustedrace_r7_UPDATED080525.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_socialsupport_fullyadjusted_interactionrace<- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_ID_Gender + Baseline_SocialSupport_Total + Baseline_Ethnicity + Time + Baseline_SocialSupport_Total*Baseline_Ethnicity*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_socialsupport_fullyadjusted_interactionrace[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #####CHRONIC STRESS & SOCIAL SUPPORT - COMBINATION MODEL######
- #Table 2 - Longitudinal Associations of Baseline Chronic Stress, Social Support, and Domain-Specific Cognitive Z-scores (Unadjusted)
- #eTable 10 - Interrelationship of Baseline Chronic Stress, Social Support, and Domain-Specific Cognitive Z-scores (Unadjusted)
- ##Chronic Stress & Social Support (Combination Model) (Unadjusted)
- ```{r}
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_071225_CS_SS_samemodel_unadjusted_Updated072125.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- options(scipen = 999)
- # Create an empty list to store the models
- models_cs_ss_unadjusted <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_ChronicStress_Total + Baseline_SocialSupport_Total + Time + Baseline_ChronicStress_Total*Time + Baseline_SocialSupport_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_cs_ss_unadjusted[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #Table 2 - Longitudinal Associations of Baseline Chronic Stress, Social Support, and Domain-Specific Cognitive Z-scores (Partial Adjusted)
- #eTable 10 - Interrelationship of Baseline Chronic Stress, Social Support, and Domain-Specific Cognitive Z-scores (Partial Adjusted)
- ##Chronic Stress & Social Support (Combination Model) (Partial Adjusted)
- ```{r}
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_CS_SS_samemodel_adjusted_w_Depression_Updated072725.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- options(scipen = 999)
- # Create an empty list to store the models
- models_cs_ss_partialadjusted <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_ID_Gender + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_ChronicStress_Total + Baseline_SocialSupport_Total + Time + Baseline_ChronicStress_Total*Time + Baseline_SocialSupport_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_cs_ss_partialadjusted[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #Table 2 - Longitudinal Associations of Baseline Chronic Stress, Social Support, and Domain-Specific Cognitive Z-scores (Fully Adjusted)
- #eTable 10 - Interrelationship of Baseline Chronic Stress, Social Support, and Domain-Specific Cognitive Z-scores (Fully Adjusted)
- ##Chronic Stress & Social Support (Combination Model) (Fully Adjusted)
- ```{r}
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_CS_SS_samemodel_fullyadjusted_Updated072725.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- options(scipen = 999)
- # Create an empty list to store the models
- models_cs_ss_fullyadjusted <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_ID_Gender + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_ChronicStress_Total + Baseline_SocialSupport_Total + Time + Baseline_ChronicStress_Total*Time + Baseline_SocialSupport_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_cs_ss_fullyadjusted[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #Table 3 - Interaction between Baseline Chronic Stress, Social Support, and Gender in relation to Domain-Specific Cognitive Z-scores
- #CS*GENDER*Time + SS*Gender*Time (Fully Adjusted)
- ```{r}
- ##CS SS Combo - Adjusted - Interaction with Gender
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_071225_Release7_CS_SS_Combo_adjustedgender_fullyadjusted_UPDATED08052025.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_cs_ss_combo_fullyadjusted_interactiongender <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_ChronicStress_Total + Baseline_SocialSupport_Total + Baseline_ID_Gender + Time + Baseline_ChronicStress_Total*Baseline_ID_Gender*Time + Baseline_SocialSupport_Total*Baseline_ID_Gender*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_cs_ss_combo_fullyadjusted_interactiongender[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #Table 4 - Interaction between Baseline Chronic Stress, Social Support, and Race/Ethnicity in relation to Domain-Specific Cognitive Z-scores
- #CS*Ethnicity*Time + SS*Ethnicity*Time (Fully Adjusted)
- ```{r}
- ##CS SS Combo - Adjusted - Interaction with Gender
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_Models_071225_Release7_CS_SS_Combo_adjustedethnicity_fullyadjusted_UPDATED08052025.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("AttentionDomain", "MemoryDomain", "ExecutiveDomain", "LanguageDomain")
- # Create an empty list to store the models
- models_cs_ss_combo_fullyadjusted_interactionethnicity <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_ID_Gender + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_ChronicStress_Total + Baseline_SocialSupport_Total + Baseline_Ethnicity + Time + Baseline_ChronicStress_Total*Baseline_Ethnicity*Time + Baseline_SocialSupport_Total*Baseline_Ethnicity*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia)
- # Store the model in the list (use the correct list name here)
- models_cs_ss_combo_fullyadjusted_interactionethnicity[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- #eTable 3. Distribution of Longitudinal Visits and Follow-Up Time
- ```{r}
- #Count visits per participant
- visit_counts_012126 <- FULLMERGE_df_nodementia %>%
- group_by(Med_ID) %>%
- summarise(
- n_visits = n_distinct(Visit_ID),
- .groups = "drop"
- )
- print(visit_counts_012126)
- visit_table_012126 <- visit_counts_012126 %>%
- count(n_visits) %>%
- arrange(n_visits) %>%
- mutate(
- percent = round(100 * n / sum(n), 1)
- )
- visit_table_012126
- #1 Visit - 2191
- #2 Visit - 1070
- #3 Visit - 430
- #4 Visit - 182
- ```
- #######
- ##Running Individual tests
- ```{r}
- FULLMERGE_df_nodementia_individualtests <- FULLMERGE_df_nodementia %>%
- select(
- Visit_ID,
- Med_ID,
- AttentionDomain,
- MemoryDomain,
- ExecutiveDomain,
- LanguageDomain,
- DS_ZScore,
- Trails_A_ZScore,
- SEVLT_T1235_ZScore,
- SEVLT_DR_ZScore,
- LM1_AB_ZScore,
- LM2_AB_ZScore,
- Digit_Symbol_Substitution_ZScore,
- Trails_B_ZScore,
- FAS_ZScore,
- Animal_ZScore
- )
- View(FULLMERGE_df_nodementia_individualtests)
- library(dplyr)
- FULLMERGE_df_nodementia_individualtests <-FULLMERGE_df_nodementia_individualtests %>%
- dplyr::rename(
- AttentionDomain_Check = AttentionDomain,
- MemoryDomain_Check = MemoryDomain,
- ExecutiveDomain_Check = ExecutiveDomain,
- LanguageDomain_Check = LanguageDomain
- )
- View(FULLMERGE_df_nodementia_individualtests)
- ```
- ##Individual Tests
- ##Chronic Stress - Fully Adjusted 05.07.2026
- #eTable 11. Longitudinal Associations of Baseline Chronic Stress and Individual Cognitive Assessment Z-scores
- ```{r}
- library(dplyr)
- library(lme4)
- library(lmerTest) #this package prints p values
- sink("Updatedreference_Mixed_Effect_IndividualTests_ChronicStress_Fullyadjusted_050726.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("DS_ZScore", "Trails_A_ZScore", "SEVLT_T1235_ZScore", "SEVLT_DR_ZScore", "LM1_AB_ZScore", "LM2_AB_ZScore",
- "Digit_Symbol_Substitution_ZScore", "Trails_B_ZScore", "FAS_ZScore", "Animal_ZScore")
- # Create an empty list to store the models
- models_chronicstress_fullyadjusted_050726 <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_ID_Gender + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_ChronicStress_Total + Time + Baseline_ChronicStress_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia_individualtests)
- # Store the model in the list (use the correct list name here)
- models_chronicstress_fullyadjusted_050726[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- ##Chronic Stress - Partial Adjusted 05.07.2026
- #Individual Tests
- #eTable 11. Longitudinal Associations of Baseline Chronic Stress and Individual Cognitive Assessment Z-scores
- ```{r}
- library(dplyr)
- library(lme4)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_IndividualTests_ChronicStress_partialadjusted_050726.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("DS_ZScore", "Trails_A_ZScore", "SEVLT_T1235_ZScore", "SEVLT_DR_ZScore", "LM1_AB_ZScore", "LM2_AB_ZScore",
- "Digit_Symbol_Substitution_ZScore", "Trails_B_ZScore", "FAS_ZScore", "Animal_ZScore")
- # Create an empty list to store the models
- models_chronicstress_partialadjusted_050726 <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_ID_Gender + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_ChronicStress_Total + Time + Baseline_ChronicStress_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia_individualtests)
- # Store the model in the list (use the correct list name here)
- models_chronicstress_partialadjusted_050726[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- ##Chronic Stress - Unadjusted 05.07.2026
- #Individual Tests
- #eTable 11. Longitudinal Associations of Baseline Chronic Stress and Individual Cognitive Assessment Z-scores
- ```{r}
- library(dplyr)
- library(lme4)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_IndividualTests_ChronicStress_unadjusted_050726.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("DS_ZScore", "Trails_A_ZScore", "SEVLT_T1235_ZScore", "SEVLT_DR_ZScore", "LM1_AB_ZScore", "LM2_AB_ZScore",
- "Digit_Symbol_Substitution_ZScore", "Trails_B_ZScore", "FAS_ZScore", "Animal_ZScore")
- # Create an empty list to store the models
- models_chronicstress_unadjusted_050726 <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~Baseline_ChronicStress_Total + Time + Baseline_ChronicStress_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia_individualtests)
- # Store the model in the list (use the correct list name here)
- models_chronicstress_unadjusted_050726[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- ##Individual Tests
- ##Social Support - Fully Adjusted
- #eTable 12. Longitudinal Associations of Baseline Social Support and Individual Cognitive Assessment Z-scores
- ```{r}
- library(dplyr)
- library(lme4)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_IndividualTests_SocialSupport_Fullyadjusted_050726.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("DS_ZScore", "Trails_A_ZScore", "SEVLT_T1235_ZScore", "SEVLT_DR_ZScore", "LM1_AB_ZScore", "LM2_AB_ZScore",
- "Digit_Symbol_Substitution_ZScore", "Trails_B_ZScore", "FAS_ZScore", "Animal_ZScore")
- # Create an empty list to store the models
- models_socialsupport_fullyadjusted_050726 <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_ID_Gender + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_SocialSupport_Total + Time + Baseline_SocialSupport_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia_individualtests)
- # Store the model in the list (use the correct list name here)
- models_socialsupport_fullyadjusted_050726[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- ##Social - Partial Adjusted 05.07.2026
- #Individual Tests
- ##eTable 12. Longitudinal Associations of Baseline Social Support and Individual Cognitive Assessment Z-scores
- ```{r}
- library(dplyr)
- library(lme4)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_IndividualTests_SocialSupport_partialadjusted_050726.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("DS_ZScore", "Trails_A_ZScore", "SEVLT_T1235_ZScore", "SEVLT_DR_ZScore", "LM1_AB_ZScore", "LM2_AB_ZScore",
- "Digit_Symbol_Substitution_ZScore", "Trails_B_ZScore", "FAS_ZScore", "Animal_ZScore")
- # Create an empty list to store the models
- models_socialsupport_partialadjusted_050726 <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_ID_Gender + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_SocialSupport_Total + Time + Baseline_SocialSupport_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia_individualtests)
- # Store the model in the list (use the correct list name here)
- models_socialsupport_partialadjusted_050726[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- ##Social Support - Unadjusted 05.07.2026
- #Individual Tests
- ##eTable 12. Longitudinal Associations of Baseline Social Support and Individual Cognitive Assessment Z-scores
- ```{r}
- library(dplyr)
- library(lme4)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_IndividualTests_SocialSupport_unadjusted_050726.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("DS_ZScore", "Trails_A_ZScore", "SEVLT_T1235_ZScore", "SEVLT_DR_ZScore", "LM1_AB_ZScore", "LM2_AB_ZScore",
- "Digit_Symbol_Substitution_ZScore", "Trails_B_ZScore", "FAS_ZScore", "Animal_ZScore")
- # Create an empty list to store the models
- models_socialsupport_unadjusted_050726 <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~Baseline_SocialSupport_Total + Time + Baseline_SocialSupport_Total*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia_individualtests)
- # Store the model in the list (use the correct list name here)
- models_socialsupport_unadjusted_050726[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- ###Individual Tests####
- ####Interactions####
- ###Gender & Chronic Stress###
- ##Individual Tests##
- #CS*GENDER*Time (Fully Adjusted)
- #eTable 13. Interaction between Baseline Chronic Stress, Social Support, and Gender in relation to Individual Cognitive Assessment Z-Scores
- ```{r}
- ##Chronic Stress - Adjusted - Interaction with Gender
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_IndividualTests_ChronicStress_adjustedgender_fullyadjusted_050826.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("DS_ZScore", "Trails_A_ZScore", "SEVLT_T1235_ZScore", "SEVLT_DR_ZScore", "LM1_AB_ZScore", "LM2_AB_ZScore",
- "Digit_Symbol_Substitution_ZScore", "Trails_B_ZScore", "FAS_ZScore", "Animal_ZScore")
- # Create an empty list to store the models
- models_chronicstress_fullyadjusted_interactiongender_050726 <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_ChronicStress_Total + Baseline_ID_Gender + Time + Baseline_ChronicStress_Total*Baseline_ID_Gender*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia_individualtests)
- # Store the model in the list (use the correct list name here)
- models_chronicstress_fullyadjusted_interactiongender_050726[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- ###Gender & Social Support###
- ##Individual Tests##
- #SS*GENDER*Time (Fully Adjusted)
- #eTable 13. Interaction between Baseline Chronic Stress, Social Support, and Gender in relation to Individual Cognitive Assessment Z-Scores
- ```{r}
- ##Chronic Stress - Adjusted - Interaction with Gender
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_IndividualTests_SocialSupport_adjustedgender_fullyadjusted_050826.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("DS_ZScore", "Trails_A_ZScore", "SEVLT_T1235_ZScore", "SEVLT_DR_ZScore", "LM1_AB_ZScore", "LM2_AB_ZScore",
- "Digit_Symbol_Substitution_ZScore", "Trails_B_ZScore", "FAS_ZScore", "Animal_ZScore")
- # Create an empty list to store the models
- models_socialsupport_fullyadjusted_interactiongender_050726 <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_Ethnicity + Baseline_PSWQ_Total + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_SocialSupport_Total + Baseline_ID_Gender + Time + Baseline_SocialSupport_Total*Baseline_ID_Gender*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia_individualtests)
- # Store the model in the list (use the correct list name here)
- models_socialsupport_fullyadjusted_interactiongender_050726[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- ##Interaction###
- ###Race##
- ##Individual Tests##
- #CS*Race*Time (Fully Adjusted)
- #eTable 14. Interaction between Baseline Chronic Stress, Social Support, and Race/Ethnicity in relation to Individual Cognitive Assessment Z-Scores
- ```{r}
- ##Chronic Stress - Fully Adjusted - Interaction with Race
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_IndividualTests_ChronicStress_adjustedrace_fullyadjusted_050826.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("DS_ZScore", "Trails_A_ZScore", "SEVLT_T1235_ZScore", "SEVLT_DR_ZScore", "LM1_AB_ZScore", "LM2_AB_ZScore",
- "Digit_Symbol_Substitution_ZScore", "Trails_B_ZScore", "FAS_ZScore", "Animal_ZScore")
- # Create an empty list to store the models
- models_chronicstress_fullyadjusted_interactionrace_050726 <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_PSWQ_Total + Baseline_ID_Gender + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_ChronicStress_Total + Baseline_Ethnicity + Time + Baseline_ChronicStress_Total*Baseline_Ethnicity*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia_individualtests)
- # Store the model in the list (use the correct list name here)
- models_chronicstress_fullyadjusted_interactionrace_050726[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
- ##Individual Tests##
- #SS*Race*Time (Fully Adjusted)
- #eTable 14. Interaction between Baseline Chronic Stress, Social Support, and Race/Ethnicity in relation to Individual Cognitive Assessment Z-Scores
- ```{r}
- ##Chronic Stress - Fully Adjusted - Interaction with Race
- library(dplyr)
- library(lmerTest) #this package prints p values
- sink("Mixed_Effect_IndividualTests_SocialSupport_adjustedrace_fullyadjusted_050826.txt")
- # Define the cognitive domain variables to loop through
- domains <- c("DS_ZScore", "Trails_A_ZScore", "SEVLT_T1235_ZScore", "SEVLT_DR_ZScore", "LM1_AB_ZScore", "LM2_AB_ZScore",
- "Digit_Symbol_Substitution_ZScore", "Trails_B_ZScore", "FAS_ZScore", "Animal_ZScore")
- # Create an empty list to store the models
- models_socialsupport_fullyadjusted_interactionrace_050726 <- list()
- # Loop through the domains and fit the linear mixed-effects model for each
- for (domain in domains) {
- # Define the formula dynamically for each domain
- formula <- as.formula(paste(domain, "~ Baseline_Age + Baseline_ID_Education + Baseline_PSWQ_Total + Baseline_ID_Gender + Baseline_GDS_Total + Baseline_IMH_Diabetes + Baseline_IMH_HeartAttack + Baseline_IMH_KidneyDisease + Baseline_IMH_Stroke + Baseline_OM_BMI + Baseline_SocialSupport_Total + Baseline_Ethnicity + Time + Baseline_SocialSupport_Total*Baseline_Ethnicity*Time + (1 | Med_ID)"))
- # Fit the linear mixed-effects model
- model <- lmer(formula, data = FULLMERGE_df_nodementia_individualtests)
- # Store the model in the list (use the correct list name here)
- models_socialsupport_fullyadjusted_interactionrace_050726[[domain]] <- model
- # Optionally, print the summary of the model
- print(paste("Model for", domain))
- print(summary(model))
- }
- sink()
- ```
HABSHD_Github.Rmd at commit 130a796, no license · at the source
Overview
- Department of Epidemiology and Prevention Wake Forest University School of Medicine Winston‐Salem North Carolina USA
- Institute for Translational Research University of North Texas Health Science Center Fort Worth Texas USA
- Department of Neurology Virginia Commonwealth University Richmond Virginia USA
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 2 matches between paragraphs and lines of code.
jkleeri/mielkelab_chronicstress_socialsupport_HABSHD
130a796426833dd30c393ba0956d41f1901fe7be, 20 May 2026Availability: 2 checks, the latest on 26 October 2026: the link answers
- 26 October 2026: the link answers
- 26 September 2026: the link answers
2 files
- HABSHD_Github.Rmd, R, 1,568 lines, 2 matches
- README.md, Text, 1,568 lines
Code availability statement
The paper has a code 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: jkleeri/
mielkelab_chronicstress_ socialsupport_HABSHD
Read it in the paper: doi.org/10.1002/alz.71760.
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;
- 1 script, each with its path and the digest of its content;
- 2 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.
Data availability statement
The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- no repository, dataset or request procedure was recognized in it
Read it in the paper: doi.org/10.1002/alz.71760.
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, 5 authors, 6 keywords, 12 MeSH terms, 1 funder, 63 references.
Cite
This paper
Lee, J. K., Johnson, L., Hall, J. R., Bateman, J. R., & Mielke, M. M. (2026). Chronic stress, social support, and domain-specific cognitive decline in HABS-HD. Alzheimer's & dementia : the journal of the Alzheimer's Association, 22(8), e71760. https://
BibTeX
@article{lee2026chronic,
author = {Lee, Jillian K. and Johnson, Leigh and Hall, James R. and Bateman, James R. and Mielke, Michelle M.},
title = {{Chronic stress, social support, and domain-specific cognitive decline in HABS-HD}},
journal = {Alzheimer's \& dementia : the journal of the Alzheimer's Association},
year = {2026},
month = aug,
volume = {22},
number = {8},
pages = {e71760},
publisher = {Wiley},
issn = {1552-5260},
doi = {10.1002/
url = {https://
pmid = {42642823},
pmcid = {PMC13507027}
}
RIS
TY - JOUR
AU - Lee, Jillian K.
AU - Johnson, Leigh
AU - Hall, James R.
AU - Bateman, James R.
AU - Mielke, Michelle M.
TI - Chronic stress, social support, and domain-specific cognitive decline in HABS-HD
T2 - Alzheimer's & dementia : the journal of the Alzheimer's Association
J2 - Alzheimers Dement
PY - 2026
DA - 2026/
VL - 22
IS - 8
SP - e71760
SN - 1552-5260
PB - Wiley
DO - 10.1002/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1002/
"type": "article-journal",
"title": "Chronic stress, social support, and domain-specific cognitive decline in HABS-HD",
"container-title": "Alzheimer's & dementia : the journal of the Alzheimer's Association",
"author": [
{
"family": "Lee",
"given": "Jillian K."
},
{
"family": "Johnson",
"given": "Leigh"
},
{
"family": "Hall",
"given": "James R."
},
{
"family": "Bateman",
"given": "James R."
},
{
"family": "Mielke",
"given": "Michelle M."
}
],
"container-title-short":
"volume": "22",
"issue": "8",
"page": "e71760",
"DOI": "10.1002/
"PMID": "42642823",
"PMCID": "PMC13507027",
"ISSN": "1552-5260",
"publisher": "Wiley",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
1
]
]
}
}
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.1016/j.bpsgos.2024.100431 [code]
- Circulating Stress Hormones, Brain Health, and Cognition in Healthy Older Adults: Cross-Sectional Findings and Sex Differences in Age-Well.Journal: Biological psychiatry global open scienceIn common: tidyverse, Alzheimer's / dementia, 4 references
- [2] doi:10.1093/braincomms/fcaf432 [code]
- The effect of chronic stress and chronic alcohol intake on behaviour, brain volume, and functional connectivity in a longitudinal rat model.Journal: Brain communicationsIn common: lmerTest, lme4, tidyverse, 2 references
- [3] doi:10.3390/genes14040842 [code]
- Changes in Loneliness, BDNF, and Biological Aging Predict Trajectories in a Blood-Based Epigenetic Measure of Cortical Aging: A Study of Older Black Americans.Journal: GenesIn common: Alzheimer's / dementia, author Michelle M. Mielke
- [4] doi:10.1186/s13195-021-00944-y
- Comparison of plasma neurofilament light and total tau as neurodegeneration markers: associations with cognitive and neuroimaging outcomes.Journal: Alzheimer's research & therapyIn common: Alzheimer's / dementia, author Michelle M. Mielke
- [5] doi:10.1016/j.neuroimage.2022.119804 [code]
- Stress disrupts insight-driven mnemonic reconfiguration in the medial temporal lobe.Journal: NeuroImageIn common: lme4, tidyverse, cognitive, 2 references
- [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: lmerTest, lme4, tidyverse, cognitive, 1 reference
- [7] doi:10.7554/elife.87271 [code]
- Acute stress reduces effortful prosocial behaviour.Journal: eLifeIn common: lmerTest, lme4, tidyverse, cognitive, 1 reference
- [8] doi:10.1093/ageing/afag263 [code]
- Cardiometabolic medication exposures and cognitive outcomes in Alzheimer's disease.Journal: Age and ageingIn common: lmerTest, lme4, tidyverse, Alzheimer's / dementia, 1 reference
- [9] doi:10.1016/j.tjpad.2026.100622 [code]
- The time interval from amyloid to tau PET positivity varies by age, sex and APOE-ε4 status.Journal: The journal of prevention of Alzheimer's diseaseIn common: lmerTest, lme4, tidyverse, Alzheimer's / dementia, 1 reference
- [10] doi:10.1038/s41598-025-05047-4 [code]
- Investigating biological sex as a moderator of the association of nature exposure with brain health: a cross-sectional UK biobank analysis.Journal: Scientific reportsIn common: lmerTest, lme4, tidyverse, cognitive, 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, 1 script, and 2 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:36351afc93365e26…
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.1002/alz.71760)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1002/alz.71760.svg
:target: https://openscicode.org/badge/doi/10.1002/alz.71760
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1002/alz.71760"><img src="https://openscicode.org/badge/doi/10.1002/alz.71760.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.
