The longitudinal relation between adolescents' learning outcomes and internalizing symptoms: The role of ADHD symptoms.
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 · 226 lines · 7.6 KB · no license
- #Descriptive statistics for paper “The longitudinal relation between learning outcomes
- #and internalising symptoms in early adolescence: The role of ADHD symptoms”.
- #Author: Linda Visser
- # Script is based on dataset "ABCD_total5", which results from the script "Prepare_file.R".
- load(file = "ABCD_total5.Rdata")
- ############ Sample description ##############
- library(summarytools)
- #age per time point
- age = ABCD_total5 [, c('age0', 'age1', 'age2', 'age3')]
- dfSummary(age)
- #sex and gender at T0
- req <- substitute(require(x, character.only = TRUE))
- libs<-c("sjPlot")
- sapply(libs, function(x) eval(req) || {install.packages(x); eval(req)})
- sjPlot::tab_xtab(var.row = ABCD_total5$sex, var.col = ABCD_total5$gender, title = "Sex and gender", show.row.prc = TRUE)
- #make one var for sex, with 0=male and 1=female
- ABCD_total5$sex2[ABCD_total5$sex=="1"] <- "0"
- ABCD_total5$sex2[ABCD_total5$sex=="2"] <- "1"
- ABCD_total5$sex2[ABCD_total5$sex=="3"] <- "0"
- # Convert the column to a factor
- ABCD_total5$sex2 <- factor(ABCD_total5$sex2)
- summary(ABCD_total5$sex2)
- #Tables for gender and grade info in Methods.
- sjPlot::tab_xtab(var.row = ABCD_total5$klasse0, var.col = ABCD_total5$sex2, title = "Klasse0 and sex", show.row.prc = TRUE)
- sjPlot::tab_xtab(var.row = ABCD_total5$klasse1, var.col = ABCD_total5$sex2, title = "Klasse1 and sex", show.row.prc = TRUE)
- sjPlot::tab_xtab(var.row = ABCD_total5$klasse2, var.col = ABCD_total5$sex2, title = "Klasse2 and sex", show.row.prc = TRUE)
- sjPlot::tab_xtab(var.row = ABCD_total5$klasse3, var.col = ABCD_total5$sex2, title = "Klasse3 and sex", show.row.prc = TRUE)
- ############## DESCRIPTIVE STATS RESULTS-SECTION (taking into account gender) #####################
- library(psych)
- #depression
- depr0_gender <- describeBy(depr0s ~ sex2 ,mat=TRUE,data = ABCD_total5)
- depr1_gender <- describeBy(depr1s ~ sex2 ,mat=TRUE,data = ABCD_total5)
- depr2_gender <- describeBy(depr2s ~ sex2 ,mat=TRUE,data = ABCD_total5)
- depr3_gender <- describeBy(depr3s ~ sex2 ,mat=TRUE,data = ABCD_total5)
- describe(ABCD_total5$depr0s)
- describe(ABCD_total5$depr1s)
- describe(ABCD_total5$depr2s)
- describe(ABCD_total5$depr3s)
- t.test(ABCD_total5$depr0s~ABCD_total5$sex2)
- t.test(ABCD_total5$depr1s~ABCD_total5$sex2)
- t.test(ABCD_total5$depr2s~ABCD_total5$sex2)
- t.test(ABCD_total5$depr3s~ABCD_total5$sex2)
- panel.hist <- function(x, ...)
- {
- usr <- par ("usr"); on.exit(par(usr))
- par(usr = c(usr[1:2], 0, 1.5))
- h <- hist (x, plot = FALSE)
- breaks <- h$breaks; nB <- length(breaks)
- y <- h$counts; y <- y/max(y)
- rect(breaks[-nB], 0, breaks[-1], y, col="cyan", ...)
- }
- pairs(~depr0s+depr1s+depr2s+depr3s, data=ABCD_total5, diag.panel=panel.hist)
- #anxiety
- anx0_gender <- describeBy(anx0s ~ sex2 ,mat=TRUE,data = ABCD_total5)
- anx1_gender <- describeBy(anx1s ~ sex2 ,mat=TRUE,data = ABCD_total5)
- anx2_gender <- describeBy(anx2s ~ sex2 ,mat=TRUE,data = ABCD_total5)
- anx3_gender <- describeBy(anx3s ~ sex2 ,mat=TRUE,data = ABCD_total5)
- describe(ABCD_total5$anx0s)
- describe(ABCD_total5$anx1s)
- describe(ABCD_total5$anx2s)
- describe(ABCD_total5$anx3s)
- t.test(ABCD_total5$anx0s~ABCD_total5$sex2)
- t.test(ABCD_total5$anx1s~ABCD_total5$sex2)
- t.test(ABCD_total5$anx2s~ABCD_total5$sex2)
- t.test(ABCD_total5$anx3s~ABCD_total5$sex2)
- panel.hist <- function(x, ...)
- {
- usr <- par ("usr"); on.exit(par(usr))
- par(usr = c(usr[1:2], 0, 1.5))
- h <- hist (x, plot = FALSE)
- breaks <- h$breaks; nB <- length(breaks)
- y <- h$counts; y <- y/max(y)
- rect(breaks[-nB], 0, breaks[-1], y, col="cyan", ...)
- }
- pairs(~anx0s+anx1s+anx2s+anx3s, data=ABCD_total5, diag.panel=panel.hist)
- #ADHD
- adhd0_gender <- describeBy(adhd0s ~ sex2 ,mat=TRUE,data = ABCD_total5)
- adhd1_gender <- describeBy(adhd1s ~ sex2 ,mat=TRUE,data = ABCD_total5)
- adhd2_gender <- describeBy(adhd2s ~ sex2 ,mat=TRUE,data = ABCD_total5)
- adhd3_gender <- describeBy(adhd3s ~ sex2 ,mat=TRUE,data = ABCD_total5)
- describe(ABCD_total5$adhd0s)
- describe(ABCD_total5$adhd1s)
- describe(ABCD_total5$adhd2s)
- describe(ABCD_total5$adhd3s)
- t.test(ABCD_total5$adhd0s~ABCD_total5$sex2)
- t.test(ABCD_total5$adhd1s~ABCD_total5$sex2)
- t.test(ABCD_total5$adhd2s~ABCD_total5$sex2)
- t.test(ABCD_total5$adhd3s~ABCD_total5$sex2)
- panel.hist <- function(x, ...)
- {
- usr <- par ("usr"); on.exit(par(usr))
- par(usr = c(usr[1:2], 0, 1.5))
- h <- hist (x, plot = FALSE)
- breaks <- h$breaks; nB <- length(breaks)
- y <- h$counts; y <- y/max(y)
- rect(breaks[-nB], 0, breaks[-1], y, col="cyan", ...)
- }
- pairs(~adhd0s+adhd1s+adhd2s+adhd3s, data=ABCD_total5, diag.panel=panel.hist)
- #SCHOOL RECORDS
- grade0_gender <- describeBy(grade0 ~ sex2 ,mat=TRUE,data = ABCD_total5)
- grade1_gender <- describeBy(grade1 ~ sex2 ,mat=TRUE,data = ABCD_total5)
- grade2_gender <- describeBy(grade2 ~ sex2 ,mat=TRUE,data = ABCD_total5)
- grade3_gender <- describeBy(grade3 ~ sex2 ,mat=TRUE,data = ABCD_total5)
- describe(ABCD_total5$grade0)
- describe(ABCD_total5$grade1)
- describe(ABCD_total5$grade2)
- describe(ABCD_total5$grade3)
- t.test(ABCD_total5$grade0~ABCD_total5$sex2)
- t.test(ABCD_total5$grade1~ABCD_total5$sex2)
- t.test(ABCD_total5$grade2~ABCD_total5$sex2)
- t.test(ABCD_total5$grade3~ABCD_total5$sex2)
- panel.hist <- function(x, ...)
- {
- usr <- par ("usr"); on.exit(par(usr))
- par(usr = c(usr[1:2], 0, 1.5))
- h <- hist (x, plot = FALSE)
- breaks <- h$breaks; nB <- length(breaks)
- y <- h$counts; y <- y/max(y)
- rect(breaks[-nB], 0, breaks[-1], y, col="cyan", ...)
- }
- pairs(~grade0+grade1+grade2+grade3, data=ABCD_total5, diag.panel=panel.hist)
- ######## numbers of cases for appendix #################################
- load(file = "ABCD_total6.Rdata")
- #missing data for Depression: n = 11868-missings.
- sum(is.na(ABCD_total6$depr0s))
- sum(is.na(ABCD_total6$depr1s))
- sum(is.na(ABCD_total6$depr2s))
- sum(is.na(ABCD_total6$depr3s))
- #separately for males and females: n = 6191 resp. 5677 - missings.
- ABCD_total6_m <- ABCD_total6[ which(ABCD_total6$sex2=='0'), ]
- sum(is.na(ABCD_total6_m$depr0s))
- sum(is.na(ABCD_total6_m$depr1s))
- sum(is.na(ABCD_total6_m$depr2s))
- sum(is.na(ABCD_total6_m$depr3s))
- ABCD_total6_f <- ABCD_total6[ which(ABCD_total6$sex2=='1'), ]
- sum(is.na(ABCD_total6_f$depr0s))
- sum(is.na(ABCD_total6_f$depr1s))
- sum(is.na(ABCD_total6_f$depr2s))
- sum(is.na(ABCD_total6_f$depr3s))
- #missing data for Anxiety: n = 11868-missings.
- sum(is.na(ABCD_total6$anx0s))
- sum(is.na(ABCD_total6$anx1s))
- sum(is.na(ABCD_total6$anx2s))
- sum(is.na(ABCD_total6$anx3s))
- #separately for males and females: n = 6191 resp. 5677 - missings.
- sum(is.na(ABCD_total6_m$anx0s))
- sum(is.na(ABCD_total6_m$anx1s))
- sum(is.na(ABCD_total6_m$anx2s))
- sum(is.na(ABCD_total6_m$anx3s))
- sum(is.na(ABCD_total6_f$anx0s))
- sum(is.na(ABCD_total6_f$anx1s))
- sum(is.na(ABCD_total6_f$anx2s))
- sum(is.na(ABCD_total6_f$anx3s))
- #adhd separately for males and females: n = 6191 resp. 5677 - missings.
- sum(is.na(ABCD_total6_m$adhd0s))
- sum(is.na(ABCD_total6_m$adhd1s))
- sum(is.na(ABCD_total6_m$adhd2s))
- sum(is.na(ABCD_total6_m$adhd3s))
- sum(is.na(ABCD_total6_f$adhd0s))
- sum(is.na(ABCD_total6_f$adhd1s))
- sum(is.na(ABCD_total6_f$adhd2s))
- sum(is.na(ABCD_total6_f$adhd3s))
- #missing data for school records: n = 11868-missings.
- sum(is.na(ABCD_total6$grade0))
- sum(is.na(ABCD_total6$grade1))
- sum(is.na(ABCD_total6$grade2))
- sum(is.na(ABCD_total6$grade3))
- #school recoreds separately for males and females: n = 6191 resp. 5677 - missings.
- sum(is.na(ABCD_total6_m$grade0))
- sum(is.na(ABCD_total6_m$grade1))
- sum(is.na(ABCD_total6_m$grade2))
- sum(is.na(ABCD_total6_m$grade3))
- sum(is.na(ABCD_total6_f$grade0))
- sum(is.na(ABCD_total6_f$grade1))
- sum(is.na(ABCD_total6_f$grade2))
- sum(is.na(ABCD_total6_f$grade3))
Descriptive statistics.R, no license · at the source
Overview
- Department of Developmental Psychopathology, Behavioural Science Institute, Radboud University, Nijmegen, The Netherlands
- DIPF | Leibniz Institute for Research and Information in Education, Frankfurt am Main, Germany
- Center for Research on Individual Development and Adaptive Education of Children at Risk (IDeA), Frankfurt am Main, Germany
- Institute for Psychology, Heidelberg University of Education, Heidelberg, Germany
- Department of Rehabilitation Sciences, TU Dortmund University, Germany
Abstract
Objective: The literature on bivariate relations between learning outcomes and symptoms of anxiety, depression, and ADHD is extensive. Much less research has been done into the trivariate longitudinal relations between learning outcomes, internalizing symptoms, and ADHD symptoms, which was the focus of the current study.
Method: The sample from the Adolescent Brain Cognitive Development (ABCD-) Study was largely representative for the US population in terms of, i.e., race and ethnicity and included 11,867 children aged 9 or 10 years (47.8% female; 52.2% male) at the start.
Results: The results of bi- and trivariate latent change score modelling with four timepoints showed that school records and symptoms of anxiety or depression were related, but school records did not predict these symptoms at the next timepoint, nor the other way around. ADHD was associated with both school records and symptoms of anxiety/ depression. Depression symptoms were a negative leading indicator of subsequent changes in ADHD.
Conclusions: The results suggest that ADHD symptoms do not form the main explanatory factor for the relation between school records and internalizing symptoms. They imply that it is important to recognize signs of depression at an early stage, so that such secondary problems can be prevented. Future research is needed to find underlying risk factors that can explain comorbidity, which can help identifying children with increased risk at an early stage.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above.
OSF yw5jv
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
OSF gw8d3
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
2 files
- Data preparation in R/
Descriptive statistics.R , R, 226 lines - Data preparation in R/
Preparing_file.R , R, 359 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 2 scripts, each with its path and the digest of its content;
- no match between paragraphs and code yet;
- 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
The data underlying the results presented in the study stem from the ABCD study and are available from the NIH Brain Development Cohorts (NBDC) Data Sharing Platform (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, 3 authors, 10 MeSH terms, 62 references.
Cite
This paper
Visser, L., Ehm, J.-H., & Brandenburg, J. (2026). The longitudinal relation between adolescents' learning outcomes and internalizing symptoms: The role of ADHD symptoms. PloS one, 21(5), e0347582. https://
BibTeX
@article{visser2026longi
author = {Visser, Linda and Ehm, Jan-Henning and Brandenburg, Janin},
title = {{The longitudinal relation between adolescents' learning outcomes and internalizing symptoms: The role of ADHD symptoms}},
journal = {PloS one},
year = {2026},
month = may,
volume = {21},
number = {5},
pages = {e0347582},
publisher = {PLOS},
issn = {1932-6203},
doi = {10.1371/
url = {https://
pmid = {42081499},
pmcid = {PMC13138621}
}
RIS
TY - JOUR
AU - Visser, Linda
AU - Ehm, Jan-Henning
AU - Brandenburg, Janin
TI - The longitudinal relation between adolescents' learning outcomes and internalizing symptoms: The role of ADHD symptoms
T2 - PloS one
J2 - PLoS One
PY - 2026
DA - 2026/
VL - 21
IS - 5
SP - e0347582
SN - 1932-6203
PB - PLOS
DO - 10.1371/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1371/
"type": "article-journal",
"title": "The longitudinal relation between adolescents' learning outcomes and internalizing symptoms: The role of ADHD symptoms",
"container-title": "PloS one",
"author": [
{
"family": "Visser",
"given": "Linda"
},
{
"family": "Ehm",
"given": "Jan-Henning"
},
{
"family": "Brandenburg",
"given": "Janin"
}
],
"container-title-short":
"volume": "21",
"issue": "5",
"page": "e0347582",
"DOI": "10.1371/
"PMID": "42081499",
"PMCID": "PMC13138621",
"ISSN": "1932-6203",
"publisher": "PLOS",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
4
]
]
}
}
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/jcv2.70135 [code]
- Alterations in resting-state functional connectivity relate to psychopathology trajectories during emerging adolescence.Journal: JCPP advancesIn common: easystats, psych, developmental, 4 references
- [2] doi:10.1016/j.dcn.2026.101692 [code]
- Effects of genetic risk for depression and household socioeconomic status on emotional behavior and brain development in early adolescence.Journal: Developmental cognitive neuroscienceIn common: easystats, psych, depression, 3 references
- [3] doi:10.1080/10888438.2026.2672100 [code]
- Reading Disabilities With and Without Co-Occurring ADHD: No Evidence for Additive Impact on Reading Skills.Journal: Scientific studies of reading : the official journal of the Society for the Scientific Study of ReadingIn common: psych, ADHD, 3 references
- [4] doi:10.1016/j.dcn.2022.101172 [code]
- Reward sensitivity and internalizing symptoms during the transition to puberty: An examination of 9-and 10-year-olds in the ABCD Study.Journal: Developmental cognitive neuroscienceIn common: easystats, psych, developmental, 2 references
- [5] doi:10.1162/imag.a.145 [code]
- Brain functional connectivity predicts depression and anxiety during childhood and adolescence: A connectome-based predictive modeling approach.Journal: Imaging neuroscience (Cambridge, Mass.)In common: depression, developmental, other condition, 3 references
- [6] doi:10.1038/s41398-023-02502-6 [code]
- Generalizable prediction of childhood ADHD symptoms from neurocognitive testing and youth characteristics.Journal: Translational psychiatryIn common: psych, ADHD, 2 references
- [7] doi:10.1017/s0033291724002368 [code]
- Unsupervised machine learning for identifying attention-deficit/
hyperactivity disorder subtypes based on cognitive function and their implications for brain structure. Journal: Psychological medicineIn common: psych, ADHD, 2 references - [8] doi:10.1016/j.dcn.2024.101492 [code]
- Sports participation &
amp; childhood neurocognitive development. Journal: Developmental cognitive neuroscienceIn common: easystats, psych, developmental, 1 reference - [9] doi:10.1038/s41398-025-03672-1 [code]
- Association of screen time with attention-deficit/
hyperactivity disorder symptoms and their development: the mediating role of brain structure. Journal: Translational psychiatryIn common: ADHD, 3 references - [10] doi:10.1016/j.dcn.2025.101518 [code]
- Longitudinal analysis of the ABCD® study.Journal: Developmental cognitive neuroscienceIn common: psych, developmental, 2 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: 2 repositories of the authors' code, each at its verified commit and with its license, 2 scripts, and 0 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:51ac164cb1d88beb…
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.1371/journal.pone.0347582)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1371/journal.pone.0347582.svg
:target: https://openscicode.org/badge/doi/10.1371/journal.pone.0347582
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1371/journal.pone.0347582"><img src="https://openscicode.org/badge/doi/10.1371/journal.pone.0347582.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.
