Individual differences in adolescent cortical development are associated with neighborhood characteristics: Longitudinal findings from the ABCD study.
4 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 5 matches
- [1] § Materials and methods › Measures › Cortical development ↔ Analysis_Scripts/Adjusted_Latent_Growth_Models.R, lines 171 to 210 · score 0.90 · SIGNA UHP, Discovery MR750, SIGNA Premier, dStream, Prisma fit, Achieva · block
oscr:b:1QF8KJSR4M22M-2· Report a mismatch - [2] § Materials and methods › Statistical analyses › Adjusted analyses ↔ Analysis_Scripts/Adjusted_Latent_Growth_Models.R, lines 171 to 210 · score 0.86 · Discovery MR750, SIGNA Premier, dStream, Prisma fit, Achieva, Ingenia · block
oscr:b:1QF8KJSR4M22M-2· Report a mismatch - [3] § Materials and methods › Statistical analyses › Association between neighborhood characteristics and individual differences in cortical development ↔ Analysis_Scripts/Latent_Growth_Models.R, lines 308 to 347 · score 0.77 · maximum possible score, transformed surface area, model convergence, latent growth models, POMS, timepoints · block
oscr:b:G4MEPTMM0DEKP-C· Report a mismatch - [4] § Materials and methods › Statistical analyses › Examining trajectories of cortical development: latent growth models ↔ Analysis_Scripts/Latent_Growth_Models.R, lines 44 to 91 · score 0.72 · latent basis growth, latent growth models, support model convergence, linear, variances, surface area · block
oscr:b:1GB6PDKAKPA1G-X· Report a mismatch - [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 to 289 · score 0.54 · growth mixture model, cortical surface area, subgroups · block
oscr:b:75890726NBWHP-A· 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 · 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.1002/hbm.70348 [code]
- Individual Differences in Developmental Trajectories of Global and Subcortical Brain Volumes Between Late Childhood and Late Adolescence: Findings From a 12-Wave Neuroimaging Study.Journal: Human brain mappingIn common: cowplot, ggplot2, tidyverse, developmental, structural MRI / diffusion, 13 references, 2 authors
- [2] doi:10.1162/imag.a.27 [code]
- Perception of social experiences and cortical thickness change together throughout early adolescence: Findings from the ABCD cohort.Journal: Imaging neuroscience (Cambridge, Mass.)In common: lavaan, ggplot2, tidyverse, developmental, structural MRI / diffusion, 10 references, 2 authors
- [3] 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
- [4] doi:10.1186/s12916-024-03784-3 [code]
- Hierarchical individual variation and socioeconomic impact on personalized functional network topography in children.Journal: BMC medicineIn common: ggplot2, tidyverse, developmental, 17 references
- [5] doi:10.1016/j.ynirp.2022.100133 [code]
- Mediating effect of pubertal stages on the family environment and neurodevelopment: An open-data replication and multiverse analysis of an ABCD Study&
lt;sup& gt;®& lt;/ sup& gt;. Journal: Neuroimage. ReportsIn common: lavaan, cowplot, ggplot2, 1 other tool, developmental, structural MRI / diffusion, 14 references - [6] doi:10.1016/j.envint.2025.109561 [code]
- Fine particulate matter air pollution and longitudinal gray matter development changes during early adolescence: variation by neighborhood disadvantage level.Journal: Environment internationalIn common: ggplot2, tidyverse, developmental, structural MRI / diffusion, 13 references
- [7] doi:10.1016/j.bpsgos.2025.100533 [code]
- Association Between Neighborhood Opportunity, Cognitive Function, and Brain Structure in Youths.Journal: Biological psychiatry global open scienceIn common: ggplot2, tidyverse, structural MRI / diffusion, 13 references
- [8] doi:10.1002/jcv2.12220 [code]
- Parental education and income are linked to offspring cortical brain structure and psychopathology at 9-11 years.Journal: JCPP advancesIn common: cowplot, ggplot2, tidyverse, developmental, structural MRI / diffusion, 11 references
- [9] doi:10.1016/j.dcn.2023.101223 [code]
- The role of brain structure in the association between pubertal timing and depression risk in an early adolescent sample (the ABCD Study®): A registered report.Journal: Developmental cognitive neuroscienceIn common: lavaan, psych, cowplot, 2 other tools, developmental, structural MRI / diffusion, 9 references
- [10] doi:10.1016/j.dcn.2024.101368 [code]
- Neighborhood disadvantage and parenting predict longitudinal clustering of uncinate fasciculus microstructural integrity and clinical symptomatology in adolescents.Journal: Developmental cognitive neuroscienceIn common: lavaan, cowplot, ggplot2, 1 other tool, developmental, structural MRI / diffusion, 6 references
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:27edad8eab6d399c…
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.1093/cercor/bhag034)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1093/cercor/bhag034.svg
:target: https://openscicode.org/badge/doi/10.1093/cercor/bhag034
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1093/cercor/bhag034"><img src="https://openscicode.org/badge/doi/10.1093/cercor/bhag034.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->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)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
