Individual differences in adolescent cortical development are associated with neighborhood characteristics: Longitudinal findings from the ABCD study.
The 5 matches
- [1] § Materials and methods › Measures › Cortical development ↔ Analysis_Scripts/Adjusted_Latent_Growth_Models.R, lines 171–210 · score 0.90 · SIGNA UHP, Discovery MR750, SIGNA Premier, dStream, Prisma fit, Achieva
- [2] § Materials and methods › Statistical analyses › Adjusted analyses ↔ Analysis_Scripts/Adjusted_Latent_Growth_Models.R, lines 171–210 · score 0.86 · Discovery MR750, SIGNA Premier, dStream, Prisma fit, Achieva, Ingenia
- [3] § Materials and methods › Statistical analyses › Association between neighborhood characteristics and individual differences in cortical development ↔ Analysis_Scripts/Latent_Growth_Models.R, lines 308–347 · score 0.77 · maximum possible score, transformed surface area, model convergence, latent growth models, POMS, timepoints
- [4] § Materials and methods › Statistical analyses › Examining trajectories of cortical development: latent growth models ↔ Analysis_Scripts/Latent_Growth_Models.R, lines 44–91 · score 0.72 · latent basis growth, latent growth models, support model convergence, linear, variances, surface area
- [5] § Materials and methods › Statistical analyses › Assessing subgroups of cortical development: growth mixture models and k-means clustering ↔ Analysis_Scripts/Growth_Mixture_Models.R, lines 216–289 · score 0.54 · growth mixture model, cortical surface area, subgroups
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
R · 880 lines · 23 KB · no license · 2 matches
- ######################################################
- # Project: Association between Neighbourhood Characteristics and Cortical Development
- # Author: Chloe Carrick
- # Date: September 2025
- ######################################################
- # Load libraries
- library(dplyr)
- library(psych)
- library(ggplot2)
- library(cowplot)
- library(pacman)
- library(lavaan)
- library(tidyverse)
- library(lcmm)
- library(gridExtra)
- library(semPlot)
- library(corrplot)
- library(kml)
- # Read in data
- brain = read.csv("brain.csv")
- # Set variables as factor/numeric
- brain[,c(1:3, 11, 12)] <- lapply(brain[,c(1:3, 11, 12)], as.factor)
- brain[,c(4:10, 13)] <- lapply(brain[,c(4:10, 13)], as.numeric)
- sapply(brain, class)
- # Set up data
- ######################################################
- # Neighbourhood Disadvantage
- ######################################################
- # Thickness
- t2brain <- brain[,c(1, 3, 4, 10, 11, 12, 13)]
- # Surface area
- s2brain <- brain[,c(1, 3, 5, 10, 11, 12, 13)]
- # The following code selects scanner type for the first neuroimaging timepoint
- # If there is no neuroimaging timepoint 1, the scanner type at second neuroimaging timepoint is used
- # If there is no neuroimaging timepoint 1 or 2, the scanner type at the third neuroimaging timepoint is used
- t2brain <- t2brain %>% group_by(src_subject_id) %>% mutate(
- scanner = case_when(
- !all(is.na(scanner[timepoint == "1"])) ~ first(scanner[timepoint == "1"]),
- !all(is.na(scanner[timepoint == "2"])) ~ first(scanner[timepoint == "2"]),
- !all(is.na(scanner[timepoint == "3"])) ~ first(scanner[timepoint == "3"]), TRUE ~ NA_character_ )) %>%
- ungroup()
- s2brain <- s2brain %>% group_by(src_subject_id) %>% mutate(
- scanner = case_when(
- !all(is.na(scanner[timepoint == "1"])) ~ first(scanner[timepoint == "1"]),
- !all(is.na(scanner[timepoint == "2"])) ~ first(scanner[timepoint == "2"]),
- !all(is.na(scanner[timepoint == "3"])) ~ first(scanner[timepoint == "3"]))) %>%
- ungroup()
- # Convert to wide format
- wt2brain <- t2brain %>% pivot_wider(names_from = timepoint, values_from = thickness)
- ws2brain <- s2brain %>% pivot_wider(names_from = timepoint, values_from = SA)
- # Rename columns to T1, T2, T3
- wt2brain <- wt2brain %>% rename(T1 = 6, T2 = 7, T3 = 8)
- ws2brain <- ws2brain %>% rename(T1 = 6, T2 = 7, T3 = 8)
- # Make thickness values larger
- wt2brain$T1 <- wt2brain$T1*10
- wt2brain$T2 <- wt2brain$T2*10
- wt2brain$T3 <- wt2brain$T3*10
- ######################################################
- # Educational Opportunity
- ######################################################
- # Thickness
- education_t2brain <- brain[,c(1, 3, 4, 8, 11, 12, 13)]
- # Surface area
- education_s2brain <- brain[,c(1, 3, 5, 8, 11, 12, 13)]
- # The following code selects scanner type for the first neuroimaging timepoint
- # If there is no neuroimaging timepoint 1, the scanner type at second neuroimaging timepoint is used
- # If there is no neuroimaging timepoint 1 or 2, the scanner type at the third neuroimaging timepoint is used
- education_t2brain <- education_t2brain %>% group_by(src_subject_id) %>% mutate(
- scanner = case_when(
- !all(is.na(scanner[timepoint == "1"])) ~ first(scanner[timepoint == "1"]),
- !all(is.na(scanner[timepoint == "2"])) ~ first(scanner[timepoint == "2"]),
- !all(is.na(scanner[timepoint == "3"])) ~ first(scanner[timepoint == "3"]))) %>%
- ungroup()
- education_s2brain <- education_s2brain %>% group_by(src_subject_id) %>% mutate(
- scanner = case_when(
- !all(is.na(scanner[timepoint == "1"])) ~ first(scanner[timepoint == "1"]),
- !all(is.na(scanner[timepoint == "2"])) ~ first(scanner[timepoint == "2"]),
- !all(is.na(scanner[timepoint == "3"])) ~ first(scanner[timepoint == "3"]))) %>%
- ungroup()
- # Convert to wide format
- education_wt2brain <- education_t2brain %>% pivot_wider(names_from = timepoint, values_from = thickness)
- education_ws2brain <- education_s2brain %>% pivot_wider(names_from = timepoint, values_from = SA)
- # Rename columns to T1, T2, T3
- education_wt2brain <- education_wt2brain %>% rename(T1 = 6, T2 = 7, T3 = 8)
- education_ws2brain <- education_ws2brain %>% rename(T1 = 6, T2 = 7, T3 = 8)
- # Make thickness values larger
- education_wt2brain$T1 <- education_wt2brain$T1*10
- education_wt2brain$T2 <- education_wt2brain$T2*10
- education_wt2brain$T3 <- education_wt2brain$T3*10
- ######################################################
- # Health/Environmental Opportunity
- ######################################################
- # Thickness
- health_t2brain <- brain[,c(1, 3, 4, 9, 11, 12, 13)]
- # Surface area
- health_s2brain <- brain[,c(1, 3, 5, 9, 11, 12, 13)]
- # The following code selects scanner type for the first neuroimaging timepoint
- # If there is no neuroimaging timepoint 1, the scanner type at second neuroimaging timepoint is used
- # If there is no neuroimaging timepoint 1 or 2, the scanner type at the third neuroimaging timepoint is used
- health_t2brain <- health_t2brain %>% group_by(src_subject_id) %>% mutate(
- scanner = case_when(
- !all(is.na(scanner[timepoint == "1"])) ~ first(scanner[timepoint == "1"]),
- !all(is.na(scanner[timepoint == "2"])) ~ first(scanner[timepoint == "2"]),
- !all(is.na(scanner[timepoint == "3"])) ~ first(scanner[timepoint == "3"]))) %>%
- ungroup()
- health_s2brain <- health_s2brain %>% group_by(src_subject_id) %>% mutate(
- scanner = case_when(
- !all(is.na(scanner[timepoint == "1"])) ~ first(scanner[timepoint == "1"]),
- !all(is.na(scanner[timepoint == "2"])) ~ first(scanner[timepoint == "2"]),
- !all(is.na(scanner[timepoint == "3"])) ~ first(scanner[timepoint == "3"]))) %>%
- ungroup()
- # Convert to wide format
- health_wt2brain <- health_t2brain %>% pivot_wider(names_from = timepoint, values_from = thickness)
- health_ws2brain <- health_s2brain %>% pivot_wider(names_from = timepoint, values_from = SA)
- # Rename columns to T1, T2, T3
- health_wt2brain <- health_wt2brain %>% rename(T1 = 6, T2 = 7, T3 = 8)
- health_ws2brain <- health_ws2brain %>% rename(T1 = 6, T2 = 7, T3 = 8)
- # Make thickness values larger
- health_wt2brain$T1 <- health_wt2brain$T1*10
- health_wt2brain$T2 <- health_wt2brain$T2*10
- health_wt2brain$T3 <- health_wt2brain$T3*10
- ######################################################
- # Adjusted models including sex and scanner type as covariates
- ######################################################
- # 1. Neighbourhood Disadvantage
- ######################################################
- # Thickness
- # Dummy code sex
- wt2brain$sex <- ifelse(wt2brain$sex == "2", 1, 0)
- # Dummy code scanner
- wt2brain$scanner <- factor(wt2brain$scanner, levels = c("Prisma", "Prisma_fit", "DISCOVERY MR750",
- "Achieva dStream", "Ingenia",
- "SIGNA Premier", "SIGNA UHP"))
- # Dummy-code 7 columns
- dums <- dummy.code(wt2brain$scanner)
- colnames(dums) <- paste0("scanner", seq_len(ncol(dums)))
- wt2brain = cbind(wt2brain, dums)
- # Fit model
- sex_ND_nonlinearmodel <- 'int =~ 1*T1 + 1*T2 + 1*T3
- s =~ 0*T1 + T2 + 1*T3
- s ~ ND + sex + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- int ~ ND + sex + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- T1 ~~ variance*T1
- T2 ~~ variance*T2
- T3 ~~ variance*T3'
- sex_ND_Tfitnl <- growth(sex_ND_nonlinearmodel, data = wt2brain, estimator ='mlr', missing='fiml.x')
- summary(sex_ND_Tfitnl, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- # Surface area
- # Dummy code sex
- ws2brain$sex <- ifelse(ws2brain$sex == "2", 1, 0)
- # Covert to POMS
- # Sample min SA
- min_SA <- min(ws2brain[, c("T1", "T2", "T3")], na.rm = TRUE)
- max_SA <- max(ws2brain[, c("T1", "T2", "T3")], na.rm = TRUE)
- # Convert
- ws2brain$T1_POMS <- (ws2brain$T1 - min_SA) / (max_SA - min_SA)
- ws2brain$T2_POMS <- (ws2brain$T2 - min_SA) / (max_SA - min_SA)
- ws2brain$T3_POMS <- (ws2brain$T3 - min_SA) / (max_SA - min_SA)
- ws2brainPOMS = ws2brain[,c(1:5, 9:11)]
- ws2brain <- ws2brain[, 1:8]
- # Add dummy-coded scanner
- ws2brainPOMS = cbind(ws2brainPOMS, dums)
- # Fit model
- S_sex_ND_nonlinearmodel <-
- 'int =~ 1*T1_POMS + 1*T2_POMS + 1*T3_POMS
- s =~ 0*T1_POMS + T2_POMS + 1*T3_POMS
- s~ND + sex + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- int~ND + sex + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- T1_POMS ~~ variance*T1_POMS
- T2_POMS ~~ variance*T2_POMS
- T3_POMS ~~ variance*T3_POMS'
- S_sex_ND_fitnl <- growth(S_sex_ND_nonlinearmodel, data = ws2brainPOMS, estimator ='mlr', missing='fiml.x')
- summary(S_sex_ND_fitnl, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- ######################################################
- #2. Educational Opportunity
- ######################################################
- # Thickness
- # Dummy code sex
- education_wt2brain$sex <- ifelse(education_wt2brain$sex == "2", 1, 0)
- # Add dummy coded scanner
- education_wt2brain = cbind(education_wt2brain, dums)
- # Fit model
- sex_education_nonlinearmodel <- 'int =~ 1*T1 + 1*T2 + 1*T3
- s =~ 0*T1 + T2 + 1*T3
- s ~ education + sex + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- int ~ education + sex + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- T1 ~~ variance*T1
- T2 ~~ variance*T2
- T3 ~~ variance*T3'
- sex_education_Tfitnl <- growth(sex_education_nonlinearmodel, data = education_wt2brain, estimator ='mlr', missing='fiml.x')
- summary(sex_education_Tfitnl, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- # Extract parameter estimates for small values
- parameterestimates(sex_education_Tfitnl)$se[7]
- parameterestimates(sex_education_Tfitnl)$se[15]
- # Surface area
- # Dummy code sex
- education_ws2brain$sex <- ifelse(education_ws2brain$sex == "2", 1, 0)
- # Covert to POMS
- # Sample min SA
- min_SA <- min(education_ws2brain[, c("T1", "T2", "T3")], na.rm = TRUE)
- max_SA <- max(education_ws2brain[, c("T1", "T2", "T3")], na.rm = TRUE)
- # Convert
- education_ws2brain$T1_POMS <- (education_ws2brain$T1 - min_SA) / (max_SA - min_SA)
- education_ws2brain$T2_POMS <- (education_ws2brain$T2 - min_SA) / (max_SA - min_SA)
- education_ws2brain$T3_POMS <- (education_ws2brain$T3 - min_SA) / (max_SA - min_SA)
- education_ws2brainPOMS = education_ws2brain[,c(1:5, 9:11)]
- education_ws2brain <- education_ws2brain[, 1:8]
- # Add dummy coded scanner
- education_ws2brainPOMS = cbind(education_ws2brainPOMS, dums)
- # Fit model
- S_sex_education_nonlinearmodel <-
- 'int =~ 1*T1_POMS + 1*T2_POMS + 1*T3_POMS
- s =~ 0*T1_POMS + T2_POMS + 1*T3_POMS
- s~education + sex + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- int~education + sex + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- T1_POMS ~~ variance*T1_POMS
- T2_POMS ~~ variance*T2_POMS
- T3_POMS ~~ variance*T3_POMS'
- S_sex_education_fitnl <- growth(S_sex_education_nonlinearmodel, data = education_ws2brainPOMS, estimator ='mlr', missing='fiml.x')
- summary(S_sex_education_fitnl, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- # Extract parameter estimates for small values
- parameterestimates(S_sex_education_fitnl)$est[7]
- parameterestimates(S_sex_education_fitnl)$se[7]
- parameterestimates(S_sex_education_fitnl)$est[15]
- parameterestimates(S_sex_education_fitnl)$se[15]
- ######################################################
- #3. Health/Environmental Opportunity
- ######################################################
- # Thickness
- # Dummy code sex
- health_wt2brain$sex <- ifelse(health_wt2brain$sex == "2", 1, 0)
- # Add dummy coded scanner
- health_wt2brain = cbind(health_wt2brain, dums)
- # Fit model
- sex_health_nonlinearmodel <- 'int =~ 1*T1 + 1*T2 + 1*T3
- s =~ 0*T1 + T2 + 1*T3
- s ~ health + sex + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- int ~ health + sex + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- T1 ~~ variance*T1
- T2 ~~ variance*T2
- T3 ~~ variance*T3'
- sex_health_Tfitnl <- growth(sex_health_nonlinearmodel, data = health_wt2brain, estimator ='mlr', missing='fiml.x')
- summary(sex_health_Tfitnl, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- # Extract parameter estimates for small values
- parameterestimates(sex_health_Tfitnl)$se[7]
- parameterestimates(sex_health_Tfitnl)$se[15]
- # Surface area
- # Dummy code sex
- health_ws2brain$sex <- ifelse(health_ws2brain$sex == "2", 1, 0)
- # Covert to POMS
- # Sample min SA
- min_SA <- min(health_ws2brain[, c("T1", "T2", "T3")], na.rm = TRUE)
- max_SA <- max(health_ws2brain[, c("T1", "T2", "T3")], na.rm = TRUE)
- # Convert
- health_ws2brain$T1_POMS <- (health_ws2brain$T1 - min_SA) / (max_SA - min_SA)
- health_ws2brain$T2_POMS <- (health_ws2brain$T2 - min_SA) / (max_SA - min_SA)
- health_ws2brain$T3_POMS <- (health_ws2brain$T3 - min_SA) / (max_SA - min_SA)
- health_ws2brainPOMS = health_ws2brain[,c(1:5, 9:11)]
- health_ws2brain <- health_ws2brain[, 1:8]
- # Add dummy coded scanner
- health_ws2brainPOMS = cbind(health_ws2brainPOMS, dums)
- # Fit model
- S_sex_health_nonlinearmodel <-
- 'int =~ 1*T1_POMS + 1*T2_POMS + 1*T3_POMS
- s =~ 0*T1_POMS + T2_POMS + 1*T3_POMS
- s~ health + sex + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- int~ health + sex + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- T1_POMS ~~ variance*T1_POMS
- T2_POMS ~~ variance*T2_POMS
- T3_POMS ~~ variance*T3_POMS'
- S_sex_health_fitnl <- growth(S_sex_health_nonlinearmodel, data = health_ws2brainPOMS, estimator ='mlr', missing='fiml.x')
- summary(S_sex_health_fitnl, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- # Extract parameter estimates for small values
- parameterestimates(S_sex_health_fitnl)$est[7]
- parameterestimates(S_sex_health_fitnl)$est[15]
- parameterestimates(S_sex_health_fitnl)$se[7]
- parameterestimates(S_sex_health_fitnl)$se[15]
- ######################################################
- # Adjusted models including sex, scanner-type, and InR as covariates
- ######################################################
- # 1. Neighbourhood Disadvantage
- ######################################################
- # Thickness
- # Fit model
- I_sex_ND_nonlinearmodel <- 'int =~ 1*T1 + 1*T2 + 1*T3
- s =~ 0*T1 + T2 + 1*T3
- s ~ ND + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- int ~ ND + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- T1 ~~ variance*T1
- T2 ~~ variance*T2
- T3 ~~ variance*T3'
- I_sex_ND_Tfitnl <- growth(I_sex_ND_nonlinearmodel, data = wt2brain, estimator ='mlr', missing='fiml.x')
- summary(I_sex_ND_Tfitnl, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- # Surface area
- # Fit model
- I_S_sex_ND_nonlinearmodel <-
- 'int =~ 1*T1_POMS + 1*T2_POMS + 1*T3_POMS
- s =~ 0*T1_POMS + T2_POMS + 1*T3_POMS
- s~ND + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- int~ND + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- T1_POMS ~~ variance*T1_POMS
- T2_POMS ~~ variance*T2_POMS
- T3_POMS ~~ variance*T3_POMS'
- I_S_sex_ND_fitnl <- growth(I_S_sex_ND_nonlinearmodel, data = ws2brainPOMS, estimator ='mlr', missing='fiml.x')
- summary(I_S_sex_ND_fitnl, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- parameterestimates(I_S_sex_ND_fitnl)$se[18]
- ######################################################
- # 1. Educational Opportunity
- ######################################################
- # Thickness
- # Fit model
- I_sex_education_nonlinearmodel <- 'int =~ 1*T1 + 1*T2 + 1*T3
- s =~ 0*T1 + T2 + 1*T3
- s ~ education + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- int ~ education + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- T1 ~~ variance*T1
- T2 ~~ variance*T2
- T3 ~~ variance*T3'
- I_sex_education_Tfitnl <- growth(I_sex_education_nonlinearmodel, data = education_wt2brain, estimator ='mlr', missing='fiml.x')
- summary(I_sex_education_Tfitnl, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- # Extract parameter estimates for smaller values
- parameterestimates(I_sex_education_Tfitnl)$se[7]
- parameterestimates(I_sex_education_Tfitnl)$se[16]
- # Surface area
- # Fit model
- I_S_sex_education_nonlinearmodel <-
- 'int =~ 1*T1_POMS + 1*T2_POMS + 1*T3_POMS
- s =~ 0*T1_POMS + T2_POMS + 1*T3_POMS
- s~education + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- int~education + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- T1_POMS ~~ variance*T1_POMS
- T2_POMS ~~ variance*T2_POMS
- T3_POMS ~~ variance*T3_POMS'
- I_S_sex_education_fitnl <- growth(I_S_sex_education_nonlinearmodel, data = education_ws2brainPOMS, estimator ='mlr', missing='fiml.x')
- summary(I_S_sex_education_fitnl, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- # Extract parameter estimates for smaller values
- parameterestimates((I_S_sex_education_fitnl))$est[7]
- parameterestimates((I_S_sex_education_fitnl))$est[16]
- parameterestimates((I_S_sex_education_fitnl))$se[7]
- parameterestimates((I_S_sex_education_fitnl))$se[16]
- ######################################################
- # 1. Health/Environmental Opportunity
- ######################################################
- # Thickness
- # Fit model
- I_sex_health_nonlinearmodel <- 'int =~ 1*T1 + 1*T2 + 1*T3
- s =~ 0*T1 + T2 + 1*T3
- s ~ health + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- int ~ health + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- T1 ~~ variance*T1
- T2 ~~ variance*T2
- T3 ~~ variance*T3'
- I_sex_health_Tfitnl <- growth(I_sex_health_nonlinearmodel, data = health_wt2brain, estimator ='mlr', missing='fiml.x')
- summary(I_sex_health_Tfitnl, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- # Surface area
- # Fit model
- I_S_sex_health_nonlinearmodel <-
- 'int =~ 1*T1_POMS + 1*T2_POMS + 1*T3_POMS
- s =~ 0*T1_POMS + T2_POMS + 1*T3_POMS
- s~ health + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- int~ health + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- T1_POMS ~~ variance*T1_POMS
- T2_POMS ~~ variance*T2_POMS
- T3_POMS ~~ variance*T3_POMS'
- I_S_sex_health_fitnl <- growth(I_S_sex_health_nonlinearmodel, data = health_ws2brainPOMS, estimator ='mlr', missing='fiml.x')
- summary(I_S_sex_health_fitnl, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- # Extract parameter estimates for small values
- parameterestimates(I_S_sex_health_fitnl)$est[7]
- parameterestimates(I_S_sex_health_fitnl)$est[16]
- parameterestimates(I_S_sex_health_fitnl)$se[7]
- parameterestimates(I_S_sex_health_fitnl)$se[16]
- ######################################################
- # Specificity analysis: including 3 neighbourhood factors in one model
- ######################################################
- # Thickness - new data frame
- all_neighbourhood_wtbrain <- wt2brain
- all_neighbourhood_wtbrain$education<- education_wt2brain$education
- all_neighbourhood_wtbrain$health <- health_wt2brain$health
- # Surface area - new data frame
- all_neighbourhood_wsbrain <- ws2brainPOMS
- all_neighbourhood_wsbrain$education<- education_ws2brainPOMS$education
- all_neighbourhood_wsbrain$health <- health_ws2brainPOMS$health
- # Check correlations
- cor.test(all_neighbourhood_wtbrain$ND, all_neighbourhood_wtbrain$health) #-0.73
- cor.test(all_neighbourhood_wtbrain$ND, all_neighbourhood_wtbrain$education) #-0.71
- cor.test(all_neighbourhood_wtbrain$education, all_neighbourhood_wtbrain$health) # 0.66
- ######################################################
- # Thickness
- # Fit model
- all_neighb_nonlinearmodel <- 'int =~ 1*T1 + 1*T2 + 1*T3
- s =~ 0*T1 + T2 + 1*T3
- s ~ ND + education + health
- int ~ ND + education + health
- T1 ~~ variance*T1
- T2 ~~ variance*T2
- T3 ~~ variance*T3'
- all_neighb_Tfitnl <- growth(all_neighb_nonlinearmodel, data = all_neighbourhood_wtbrain, estimator ='mlr', missing='fiml.x')
- summary(all_neighb_Tfitnl, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- parameterestimates(all_neighb_Tfitnl)$est[8]
- parameterestimates(all_neighb_Tfitnl)$se[8]
- parameterestimates(all_neighb_Tfitnl)$se[9]
- parameterestimates(all_neighb_Tfitnl)$se[11]
- parameterestimates(all_neighb_Tfitnl)$se[12]
- ######################################################
- # Adjusting for sex, scanner, income to needs
- ######################################################
- # Fit model
- all_neighb_nonlinearmodel_2 <- 'int =~ 1*T1 + 1*T2 + 1*T3
- s =~ 0*T1 + T2 + 1*T3
- s ~ ND + education + health + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- int ~ ND + education + health + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- T1 ~~ variance*T1
- T2 ~~ variance*T2
- T3 ~~ variance*T3'
- all_neighb_Tfitnl_2 <- growth(all_neighb_nonlinearmodel_2, data = all_neighbourhood_wtbrain, estimator ='mlr', missing='fiml.x')
- summary(all_neighb_Tfitnl_2, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- # Extract parameter estimates for small values
- parameterestimates(all_neighb_Tfitnl_2)$est[8]
- parameterestimates(all_neighb_Tfitnl_2)$se[8]
- parameterestimates(all_neighb_Tfitnl_2)$se[9]
- parameterestimates(all_neighb_Tfitnl_2)$se[19]
- parameterestimates(all_neighb_Tfitnl_2)$se[20]
- ##############################################################
- # Surface area
- # Fit model
- SA_all_neighb_nonlinearmodel <- 'int =~ 1*T1_POMS + 1*T2_POMS + 1*T3_POMS
- s =~ 0*T1_POMS + T2_POMS + 1*T3_POMS
- s ~ ND + education + health
- int ~ ND + education + health
- T1_POMS ~~ variance*T1_POMS
- T2_POMS ~~ variance*T2_POMS
- T3_POMS ~~ variance*T3_POMS'
- all_neighb_Sfitnl <- growth(SA_all_neighb_nonlinearmodel, data = all_neighbourhood_wsbrain, estimator ='mlr', missing='fiml.x')
- summary(all_neighb_Sfitnl, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- # Extract parameter estimates for small values
- parameterestimates(all_neighb_Sfitnl)$est[7]
- parameterestimates(all_neighb_Sfitnl)$est[8]
- parameterestimates(all_neighb_Sfitnl)$est[9]
- parameterestimates(all_neighb_Sfitnl)$est[11]
- parameterestimates(all_neighb_Sfitnl)$est[12]
- parameterestimates(all_neighb_Sfitnl)$se[8]
- parameterestimates(all_neighb_Sfitnl)$se[9]
- parameterestimates(all_neighb_Sfitnl)$se[11]
- parameterestimates(all_neighb_Sfitnl)$se[12]
- ######################################################
- # Adjusting for sex, scanner, InR
- ######################################################
- SA_all_neighb_nonlinearmodel_2 <- 'int =~ 1*T1_POMS + 1*T2_POMS + 1*T3_POMS
- s =~ 0*T1_POMS + T2_POMS + 1*T3_POMS
- s ~ ND + education + health + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- int ~ ND + education + health + sex + income_to_needs + scanner1 + scanner2 + scanner3 + scanner4 + scanner5 + scanner6
- T1_POMS ~~ variance*T1_POMS
- T2_POMS ~~ variance*T2_POMS
- T3_POMS ~~ variance*T3_POMS'
- # Using nonlinear model
- all_neighb_Sfitnl_2 <- growth(SA_all_neighb_nonlinearmodel_2, data = all_neighbourhood_wsbrain, estimator ='mlr', missing='fiml.x')
- summary(all_neighb_Sfitnl_2, fit.measures = TRUE, rsquare = TRUE, standardized = TRUE)
- # Extract parameter estimates for small values
- parameterestimates(all_neighb_Sfitnl_2)$est[8]
- parameterestimates(all_neighb_Sfitnl_2)$est[9]
- parameterestimates(all_neighb_Sfitnl_2)$est[19]
- parameterestimates(all_neighb_Sfitnl_2)$est[20]
- parameterestimates(all_neighb_Sfitnl_2)$se[8]
- parameterestimates(all_neighb_Sfitnl_2)$se[9]
- parameterestimates(all_neighb_Sfitnl_2)$se[19]
- parameterestimates(all_neighb_Sfitnl_2)$se[20]
- ######################################################
Adjusted_Latent_Growth_Models.R, no license · at the source
Overview
- Department of Psychology, Institute of Psychiatry, Psychology, and Neuroscience, King’s College London, Guy's Campus, Great Maze Pond, London SE1 1UL, United Kingdom
- Neuroimaging Department, Institute of Psychiatry, Psychology, and Neuroscience, King’s College London, Centre for Neuroimaging Sciences, De Crespigny Park, Camberwell, London SE5 8AF, United Kingdom
- Cognitive Neuroscience Department, Radboud University Medical Center, Nijmegen, The Netherlands
Abstract
Developmental trajectories of adolescent cortical structure differ between individuals. Neighborhood environments are increasingly recognized as influencing this variability. Few studies have examined how multifaceted neighborhood contexts relate to individual changes in cortical maturation patterns. Using 3 waves of neuroimaging data from the ABCD study (n = 11,639 with at least one scan), and latent growth models, the present investigation examined associations between exposure to neighborhood disadvantage and educational, health, and environmental opportunities at ages 9 to 10, and interindividual variability in trajectories of cortical thickness and surface area development between ages 9 and 15. Individuals exposed to disadvantaged neighborhoods showed lower cortical thickness and surface area, and accelerated rates of change in these metrics across adolescence, whereas greater neighborhood opportunities were associated with higher cortical thickness and surface area and a slower pace of change. Our findings indicate interindividual variability in cortical maturational trajectories and provide evidence for the role of neighborhood environments, including positive and negative features, in shaping this variability. This emphasizes the need for future studies examining multiple facets of neighborhood ecologies when examining their influence on adolescent cortical development.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 5 matches between paragraphs and lines of code.
OSF avu29
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
5 files
- Analysis_Scripts/
Adjusted_Latent_Growth_M , R, 880 lines, 2 matchesodels.R - Analysis_Scripts/
Figures.R , R, 384 lines - Analysis_Scripts/
Growth_Mixture_Models.R , R, 289 lines, 1 match - Analysis_Scripts/
KML_K_Means_Clustering.R , R, 115 lines - Analysis_Scripts/
Latent_Growth_Models.R , R, 473 lines, 2 matches
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;
- 5 scripts, each with its path and the digest of its content;
- 5 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
This study harnessed data from the ABCD study (https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 5 keywords, 13 MeSH terms, 3 funders, 101 references.
Cite
This paper
Carrick, C., Rakesh, D., Michel, L., Bates, K., & Fuhrmann, D. (2026). Individual differences in adolescent cortical development are associated with neighborhood characteristics: Longitudinal findings from the ABCD study. Cerebral cortex (New York, N.Y. : 1991), 36(4), bhag034. https://
BibTeX
@article{carrick2026indi
author = {Carrick, Chloe and Rakesh, Divyangana and Michel, Lea and Bates, Kathryn and Fuhrmann, Delia},
title = {{Individual differences in adolescent cortical development are associated with neighborhood characteristics: Longitudinal findings from the ABCD study}},
journal = {Cerebral cortex (New York, N.Y. : 1991)},
year = {2026},
month = apr,
volume = {36},
number = {4},
pages = {bhag034},
publisher = {Oxford University Press},
issn = {1047-3211},
doi = {10.1093/
url = {https://
pmid = {41955291},
pmcid = {PMC13064848}
}
RIS
TY - JOUR
AU - Carrick, Chloe
AU - Rakesh, Divyangana
AU - Michel, Lea
AU - Bates, Kathryn
AU - Fuhrmann, Delia
TI - Individual differences in adolescent cortical development are associated with neighborhood characteristics: Longitudinal findings from the ABCD study
T2 - Cerebral cortex (New York, N.Y. : 1991)
J2 - Cereb Cortex
PY - 2026
DA - 2026/
VL - 36
IS - 4
SP - bhag034
SN - 1047-3211
PB - Oxford University Press
DO - 10.1093/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1093/
"type": "article-journal",
"title": "Individual differences in adolescent cortical development are associated with neighborhood characteristics: Longitudinal findings from the ABCD study",
"container-title": "Cerebral cortex (New York, N.Y. : 1991)",
"author": [
{
"family": "Carrick",
"given": "Chloe"
},
{
"family": "Rakesh",
"given": "Divyangana"
},
{
"family": "Michel",
"given": "Lea"
},
{
"family": "Bates",
"given": "Kathryn"
},
{
"family": "Fuhrmann",
"given": "Delia"
}
],
"container-title-short":
"volume": "36",
"issue": "4",
"page": "bhag034",
"DOI": "10.1093/
"PMID": "41955291",
"PMCID": "PMC13064848",
"ISSN": "1047-3211",
"publisher": "Oxford University Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
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.dcn.2026.101738 [code]
- Timing and tempo of puberty and neurodevelopment following adversity: A registered report.Journal: Developmental cognitive neuroscienceIn common: psych, cowplot, ggplot2, 1 other tool, developmental, structural MRI / diffusion, 16 references
- [2] doi:10.1038/s41398-026-04143-x [code]
- Neighborhood opportunity, white matter, and cognition in a large pediatric neuroimaging study.Journal: Translational psychiatryIn common: ggplot2, tidyverse, structural MRI / diffusion, 8 references
- [3] doi:10.1038/s41398-026-04045-y [code]
- Physical-Digital and social-nonsocial extracurricular engagement: differential effects on brain development and psychological outcomes in children.Journal: Translational psychiatryIn common: lavaan, tidyverse, structural MRI / diffusion, 6 references
- [4] doi:10.1038/s41398-026-04010-9 [code]
- Bullying victimization and brain development: a longitudinal structural magnetic resonance imaging study from adolescence to early adulthood.Journal: Translational psychiatryIn common: lavaan, psych, ggplot2, 1 other tool, developmental, structural MRI / diffusion, 3 references
- [5] doi:10.7554/elife.108109 [code]
- Multimodal MRI marker of cognition explains the association between cognition and mental health in the UK Biobank.Journal: eLifeIn common: lavaan, psych, ggplot2, structural MRI / diffusion, 3 references
- [6] doi:10.1038/s41467-026-74565-0 [code]
- The functional neurobiology of dispositions towards negative emotions.Journal: Nature communicationsIn common: psych, cowplot, ggplot2, 1 other tool, 3 references
- [7] doi:10.1038/s41467-026-73072-6 [code]
- Mapping the spatiotemporal continuum of structural connectivity development across the human connectome in youth.Journal: Nature communicationsIn common: psych, ggplot2, tidyverse, developmental, structural MRI / diffusion, 3 references
- [8] doi:10.1038/s41514-026-00456-9 [code]
- Exploring the link between body physiology and cognition: the role of the brain and aging.Journal: npj agingIn common: lavaan, psych, ggplot2, 1 other tool, 2 references
- [9] doi:10.1002/jcv2.70135 [code]
- Alterations in resting-state functional connectivity relate to psychopathology trajectories during emerging adolescence.Journal: JCPP advancesIn common: psych, ggplot2, tidyverse, developmental, 3 references
- [10] doi:10.1093/pnasnexus/pgag138 [code]
- Regretting a chance to connect: How neural responses to missed social opportunities predict self-disclosure.Journal: PNAS nexusIn common: lavaan, psych, cowplot, 2 other tools
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
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, 5 scripts, and 5 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:26c8971535e7c328…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[.
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
