OSCR

Genetic and environmental influences on data missingness in developmental cognitive neuroscience.

Code ↔ Paper

5 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 5 matches
  1. [1] § Methods › Associations between missingness and other traits ↔ prepdata_missingBT.R, lines 141–186 · score 0.79 · gestational age, parental education, parental age, family income, sex
  2. [2] § Methods › Twin analysis ↔ bt-missing_univariate.R, lines 255–336 · score 0.68 · fitting nested model, AE model, ACE model, covariance, CI
  3. [3] § Methods › Twin analysis ↔ univariate liability threshold model.R, lines 206–265 · score 0.65 · AE model, nested model, ACE model, thresholds, CI, fitting
  4. [4] § Methods › Twin analysis ↔ univariate liability threshold model.R, lines 1–39 · score 0.59 · liability threshold model, univariate liability threshold, variable, Twin
  5. [5] § Results › Experiment-level missingness ↔ univariate liability threshold model.R, lines 41–79 · score 0.55 · univariate liability threshold, Twin correlations, zero, model, DZ, MZ

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 · 297 lines · 7.3 KB · no license · 3 matches

  1. #==========
  2. # univariate twin analysis
  3. # used to test liability threshold models for experiment-level missing
  4. #
  5. # author: Giorgia Bussu
  6. # project: BT missing data
  7. # version: June 2024
  8. #==========
  9. rm(list=ls())
  10. require(OpenMx)
  11. source('C:/Users/myfolder/twin_modelling/tutorial/miFunctions.R')
  12. ###############################################################################################################
  13. ### prepare data:
  14. ### import and check data
  15. data <- read.csv(file='twin_bin_sensitivity_data.csv',header=T,
  16. sep=',')
  17. names(data);dim(data)
  18. ### select variable for analysis:
  19. Vars <- 'fomo_bin'
  20. nv <- 1
  21. ntv <- nv*2
  22. nth <- 1
  23. (selVars <- paste(Vars,c(rep(1,nv),rep(2,nv)),sep=''))
  24. ### select subsets for analysis:
  25. mz <- subset(data,zygosity=='MZ',selVars)
  26. dz <- subset(data,zygosity=='DZ',selVars)
  27. # convert the variable to a factor:
  28. mz <- mxFactor(x=mz[,selVars],levels=c(0:nth))
  29. dz <- mxFactor(x=dz[,selVars],levels=c(0:nth))
  30. ##### assumptions testing and twin correlations #####
  31. ### fit a fully saturated model
  32. # matrix for the mean, which is fixed to 0:
  33. expMean <- mxMatrix(type='Zero',nrow=1,ncol=ntv,name='ExpMean')
  34. # matrices for the thresholds:
  35. expThreshMZ <- mxMatrix(type='Full',nrow=1,ncol=ntv,free=T,values=1,
  36. labels=labFull('th_mz',1,ntv),
  37. name='ExpThreshMZ')
  38. expThreshDZ <- mxMatrix(type='Full',nrow=1,ncol=ntv,free=T,values=1,
  39. labels=labFull('th_dz',1,ntv),
  40. name='ExpThreshDZ')
  41. # twin correlations:
  42. expCorMZ <- mxMatrix(type='Stand',nrow=ntv,ncol=ntv,free=T,values=.5,
  43. label='cor_mz',lbound=-.9999,ubound=.9999,
  44. name='ExpCorMZ')
  45. expCorDZ <- mxMatrix(type='Stand',nrow=ntv,ncol=ntv,free=T,values=.5,
  46. label='cor_dz',lbound=-.9999,ubound=.9999,
  47. name='ExpCorDZ')
  48. # specify observed data:
  49. dataMZ <- mxData(mz,type='raw')
  50. dataDZ <- mxData(dz,type='raw')
  51. # specify objectives:
  52. objMZ <- mxExpectationNormal(covariance='ExpCorMZ',
  53. means='ExpMean',dimnames=selVars,
  54. thresholds='ExpThreshMZ')
  55. objDZ <- mxExpectationNormal(covariance='ExpCorDZ',
  56. means='ExpMean',dimnames=selVars,
  57. thresholds='ExpThreshDZ')
  58. # specify estimation method:
  59. funcML <- mxFitFunctionML()
  60. # specify the data groups:
  61. modelMZ <- mxModel('MZ',expMean,expThreshMZ,expCorMZ,dataMZ,objMZ,
  62. funcML)
  63. modelDZ <- mxModel('DZ',expMean,expThreshDZ,expCorDZ,dataDZ,objDZ,
  64. funcML)
  65. # combine data groups:
  66. multi <- mxFitFunctionMultigroup(c('MZ','DZ'))
  67. # confidence intervals:
  68. ci <- mxCI(c('MZ.ExpCorMZ','DZ.ExpCorDZ'))
  69. # combine all model objects:
  70. SatModel <- mxModel('Sat',modelMZ,modelDZ,ci,multi)
  71. # fit the model:
  72. SatFit <- mxTryHardOrdinal(SatModel,intervals=T)
  73. summary(SatFit)
  74. ### test assumptions
  75. # assumption 1: equal thresholds within twin pairs:
  76. SatModel2 <- mxModel(SatFit,name='Sat2')
  77. SatModel2 <- omxSetParameters(SatModel2,labels=labFull('th_mz',nth,ntv),
  78. free=T,values=1,newlabel='th_mz')
  79. SatModel2 <- omxSetParameters(SatModel2,labels=labFull('th_dz',nth,ntv),
  80. free=T,values=1,newlabel='th_dz')
  81. SatFit2 <- mxTryHardOrdinal(SatModel2,intervals=T)
  82. summary(SatFit2)
  83. # assumption 2:
  84. SatModel3 <- mxModel(SatFit2,name='Sat3')
  85. SatModel3 <- omxSetParameters(SatModel3,labels=c('th_mz','th_dz'),free=T,
  86. values=1,newlabel='th')
  87. SatFit3 <- mxTryHardOrdinal(SatModel3,intervals=T)
  88. summary(SatFit3)
  89. # compare the fit of the models:
  90. mxCompare(SatFit,c(SatFit2,SatFit3))
  91. # significance correlations
  92. # assumption 2:
  93. SatModel_corr <- mxModel(SatFit3,name='SatCorr')
  94. SatModel_corr <- omxSetParameters(SatModel_corr,labels=c('cor_dz'),free=F,
  95. values=0)
  96. SatFit_corr <- mxTryHardOrdinal(SatModel_corr,intervals=T)
  97. summary(SatFit_corr)
  98. mxCompare(SatFit3,SatFit_corr)
  99. ##### ACE model #####
  100. ### full ACE model
  101. # path coefficients:
  102. pathA <- mxMatrix(type='Full',nrow=nv,ncol=nv,free=T,values=1,label='a_1_1',
  103. name='a')
  104. pathC <- mxMatrix(type='Full',nrow=nv,ncol=nv,free=T,values=1,label='c_1_1',
  105. name='c')
  106. pathE <- mxMatrix(type='Full',nrow=nv,ncol=nv,free=T,values=1,label='e_1_1',
  107. name='e')
  108. # calculate variance components:
  109. varA <- mxAlgebra(a^2,name='A')
  110. varC <- mxAlgebra(c^2,name='C')
  111. varE <- mxAlgebra(e^2,name='E')
  112. # calculate the total variance:
  113. varP <- mxAlgebra(A+C+E,name='V')
  114. # constrain the total variance to equal 1:
  115. matU <- mxMatrix(type='Unit',nrow=nv,ncol=nv,name='U')
  116. varConst <- mxConstraint(V==U,name='VarConst')
  117. # mean:
  118. expMean <- mxMatrix(type='Zero',nrow=1,ncol=ntv,name='ExpMean')
  119. # threshold:
  120. expThresh <- mxMatrix(type='Full',nrow=nth,ncol=ntv,free=T,values=1,label='th',
  121. name='ExpThresh')
  122. # variance/covariance:
  123. expCovMZ <- mxAlgebra(rbind(cbind(V,A+C),
  124. cbind(A+C,V)),name='ExpCovMZ')
  125. expCovDZ <- mxAlgebra(rbind(cbind(V,0.5%x%A+C),
  126. cbind(0.5%x%A+C,V)),name='ExpCovDZ')
  127. # convert the variance components to proportions:
  128. estVC <- mxAlgebra(cbind(A/V,C/V,E/V),name='EstVC')
  129. # observed data:
  130. dataMZ <- mxData(mz,type='raw')
  131. dataDZ <- mxData(dz,type='raw')
  132. # objectives:
  133. objMZ <- mxExpectationNormal(covariance='ExpCovMZ',means='ExpMean',dimnames=selVars,
  134. thresholds='ExpThresh')
  135. objDZ <- mxExpectationNormal(covariance='ExpCovDZ',means='ExpMean',dimnames=selVars,
  136. thresholds='ExpThresh')
  137. funcML <- mxFitFunctionML()
  138. # specify data groups:
  139. pars <- list(pathA,pathC,pathE,varA,varC,varE,varP,matU,expMean,expThresh)
  140. modelMZ <- mxModel('MZ',pars,varConst,expCovMZ,estVC,dataMZ,objMZ,funcML)
  141. modelDZ <- mxModel('DZ',pars,varConst,expCovDZ,estVC,dataDZ,objDZ,funcML)
  142. # combine data groups:
  143. multi <- mxFitFunctionMultigroup(c('MZ','DZ'))
  144. # confidence intervals:
  145. ci <- mxCI(c('MZ.EstVC'))
  146. # combine all model objects:
  147. ModelACE <- mxModel('ACE',modelMZ,modelDZ,multi,ci)
  148. # fit the model:
  149. FitACE <- mxTryHardOrdinal(ModelACE,intervals=T)
  150. summary(FitACE)
  151. # compare fit to the saturated model:
  152. mxCompare(SatFit,FitACE)
  153. ### nested models:
  154. # AE model:
  155. ModelAE <- mxModel(FitACE,name='AE')
  156. ModelAE <- omxSetParameters(ModelAE,label='c_1_1',free=F,values=0)
  157. FitAE <- mxTryHardOrdinal(ModelAE,intervals=T)
  158. aefit<-summary(FitAE)
  159. # CE model:
  160. ModelCE <- mxModel(FitACE,name='CE')
  161. ModelCE <- omxSetParameters(ModelCE,label='a_1_1',free=F,values=0)
  162. FitCE <- mxTryHardOrdinal(ModelCE,intervals=T)
  163. cefit<-summary(FitCE)
  164. # E model:
  165. ModelE <- mxModel(FitACE,name='E')
  166. ModelE <- omxSetParameters(ModelE,labels=c('a_1_1','c_1_1'),free=F,values=0)
  167. FitE <- mxTryHardOrdinal(ModelE,intervals=T)
  168. summary(FitE)
  169. # compare fit with the ACE model:
  170. mxCompare(FitACE,c(FitAE,FitCE,FitE))
  171. # AC for p purposes
  172. ModelAC <- mxModel(FitACE,name='AC')
  173. ModelAC <- omxSetParameters(ModelAC,label='e_1_1',free=F,values=0)
  174. FitAC <- mxTryHardOrdinal(ModelAC,intervals=T)
  175. summary(FitAC)

univariate liability threshold model.R at commit ad713aa, no license · at the source

Overview

Authors: G Bussu1, A M Portugal1, C Viktorsson1, I Hardiansyah1,2, T Falck-Ytter1,2
  1. Development and Neurodiversity Lab, Department of Psychology, Uppsala University, Uppsala, Sweden
  2. Center of Neurodevelopmental Disorders (KIND), Centre for Psychiatry Research, Department of Women’s and Children’s Health, Karolinska Institutet & Stockholm Health Care Services, Region Stockholm, Stockholm, Sweden
Journal: Communications psychology, volume 4, issue 1, article 70
Dates: received 23 January 2025; accepted 7 April 2026; published online 22 April 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s44271-026-00457-0 · PMID 42020721 · PMCID PMC13102918 · OpenAlex W7155199275
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: human (organism), developmental (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Preprocessing, fMRI & imaging, Physiology & signal measures
Keywords: Psychology, Visual system, Predictive markers
Topic: Cognitive Abilities and Testing (Experimental and Cognitive Psychology, Psychology), according to OpenAlex
Funding: Knut och Alice Wallenbergs Stiftelse (KAW 2024.0228); Marianne and Marcus Wallenberg Foundation; Riksbankens Jubileumsfond (Stiftelsen Riksbankens Jubileumsfond) (NHS14-1802:1)
Citations: cited by 1 paper (Europe PMC); 47 references in the paper

Abstract

Missing data are common in social and clinical sciences and understanding the causes and patterns of missing data is important for selecting analysis approach and for the interpretation of the remaining data. Yet, knowledge about the factors influencing data loss is limited. Here, we assessed the contribution of genes and environments to data missingness across three experiments of infant brain and behavioural development. The sample consisted of 594 infant twins (330 monozygotic, 152 female, 178 male infants; 264 dizygotic, 132 female, 132 male infants) who were assessed with electroencephalography (EEG), pupillometry, and gaze tracking technologies at 5 months of age. Substantial familial factors (additive genetics and/or shared environment) for data missingness were found across all experiments. The amount of missing data showed only a low correlation across the experiments, suggesting a high degree of specificity in the factors contributing to missingness. The results underscore the need to adopt and improve procedural and analytical strategies that minimise data loss and its negative impacts on study conclusions.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repositories

Its files are read in the Code ↔ Paper reader above, with 5 matches between paragraphs and lines of code.

OSF rqwvc

License: none: the authors keep all their rights
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Size: 0 files, 0 scripts
Software Heritage: not checked
Found in: the references
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
  • 29 September 2026: the link answers (HTTP 200)
At the source:

Zenodo 19333394

License: CC-BY-4.0
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: ggplot2 (1 file), psych (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
  • 29 September 2026: the link answers (HTTP 200)
6 files
At the source:

brainhabit/bt_missingdata

License: none: the authors keep all their rights
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Commit: ad713aa6f528e3b9a01871e817ceb39b355f1d84, 17 October 2024
Languages: R (5)
Size: 6 files, 5 scripts
Software Heritage: not archived
Found in: the Zenodo archive record
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: ggplot2 (1 file), psych (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 29 September 2026: the link answers
  • 29 September 2026: the link answers
6 files

Code availability

The analytic code necessary to attempt to replicate the findings presented here is publicly available at 10.5281/zenodo.19333394.

Reproduced under the paper's license (CC BY), from the paper cited above.

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:

  • 3 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 10 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

Datasets cited

Data availability

The study used behavioural data and derivates of genetic testing. The data contain pseudonymized personal information as defined by GDPR (EU law) and cannot be openly shared. Access is available through a controlled access procedure for researchers who: (a) demonstrate a legitimate scientific purpose aligned with the original participant consent and ethics approval; (b) obtain approval from their institutional ethics board; (c) have the capacity to ensure GDPR‑compliant secure data handling; and (d) sign a Data Sharing Agreement specifying conditions for use, storage, and destruction of the data. To request access, contact the corresponding author (TFY). The numerical data underlying Fig. 1 are available here: https://osf.io/bg8zx/files/osfstorage (https://eur01.safelinks.protection.outlook.com/?url=https://osf.io/bg8zx/files/osfstorage&data=05|02||80f306a61ff74fdf7c8008de8e37841d|bff7eef1cf4b4f32be3da1dda043c05d|0|0|639104566733914692|Unknown|TWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ==|0|||&sdata=4MTfOwF2tZb4QfHFo4XF6rNaY/Bvh02WWXpzkbjJuLQ=&reserved=0).

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, 29 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 3 keywords, 3 funders, 35 references.

Cite

This paper

Bussu, G., Portugal, A. M., Viktorsson, C., Hardiansyah, I., & Falck-Ytter, T. (2026). Genetic and environmental influences on data missingness in developmental cognitive neuroscience. Communications psychology, 4(1), 70. https://doi.org/10.1038/s44271-026-00457-0

BibTeX

@article{bussu2026genetic,
author = {Bussu, G and Portugal, A M and Viktorsson, C and Hardiansyah, I and Falck-Ytter, T},
title = {{Genetic and environmental influences on data missingness in developmental cognitive neuroscience}},
journal = {Communications psychology},
year = {2026},
month = apr,
volume = {4},
number = {1},
pages = {70},
publisher = {Nature Publishing Group},
issn = {2731-9121},
doi = {10.1038/s44271-026-00457-0},
url = {https://doi.org/10.1038/s44271-026-00457-0},
pmid = {42020721},
pmcid = {PMC13102918}
}

RIS

TY - JOUR
AU - Bussu, G
AU - Portugal, A M
AU - Viktorsson, C
AU - Hardiansyah, I
AU - Falck-Ytter, T
TI - Genetic and environmental influences on data missingness in developmental cognitive neuroscience
T2 - Communications psychology
J2 - Commun Psychol
PY - 2026
DA - 2026/04/22
VL - 4
IS - 1
SP - 70
SN - 2731-9121
PB - Nature Publishing Group
DO - 10.1038/s44271-026-00457-0
UR - https://doi.org/10.1038/s44271-026-00457-0
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s44271-026-00457-0",
"type": "article-journal",
"title": "Genetic and environmental influences on data missingness in developmental cognitive neuroscience",
"container-title": "Communications psychology",
"author": [
{
"family": "Bussu",
"given": "G"
},
{
"family": "Portugal",
"given": "A M"
},
{
"family": "Viktorsson",
"given": "C"
},
{
"family": "Hardiansyah",
"given": "I"
},
{
"family": "Falck-Ytter",
"given": "T"
}
],
"container-title-short": "Commun Psychol",
"volume": "4",
"issue": "1",
"page": "70",
"DOI": "10.1038/s44271-026-00457-0",
"PMID": "42020721",
"PMCID": "PMC13102918",
"ISSN": "2731-9121",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s44271-026-00457-0",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
22
]
]
}
}

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.1097/pr9.0000000000001437 [code]
Electroencephalography during acute painful procedures in neonates: a scoping review.
Journal: Pain reports
In common: ggplot2, tidyverse, developmental, 2 references
[2] doi:10.1038/s41562-026-02486-5 [code]
Genome-wide association studies of infant and toddler temperament in European and multi-ancestry populations.
Journal: Nature human behaviour
In common: psych, ggplot2, tidyverse, developmental, 1 reference
[3] doi:10.1038/s43856-026-01510-z [code]
Mapping genetic convergence across brain structure, mental health, and cardiometabolic disease.
Journal: Communications medicine
In common: psych, ggplot2, tidyverse, developmental, 1 reference
[4] doi:10.1212/wnl.0000000000218164 [code]
Race and Ethnicity, Hypertension, and Neuroimaging Markers of Brain Aging: A Causal Mediation Analysis in the HABS-HD Study.
Journal: Neurology
In common: psych, ggplot2, tidyverse, 1 reference
[5] doi:10.1038/s41467-026-73428-y [code]
Regional heterogeneity in phenotypic and genetic associations between bone and brain in humans.
Journal: Nature communications
In common: psych, ggplot2, tidyverse, 1 reference
[6] doi:10.1038/s41467-026-71738-9 [code]
Genetic landscape of adult executive function reveals a cell-type-specific developmental origin.
Journal: Nature communications
In common: psych, ggplot2, tidyverse, 1 reference
[7] doi:10.1016/j.nicl.2026.104053 [code]
Childhood white matter organization predicts adolescent internalizing problems among youth with and without ADHD.
Journal: NeuroImage. Clinical
In common: psych, ggplot2, tidyverse, developmental
[8] doi:10.1117/1.nph.13.3.035001 [code]
Understanding variability in full-term newborns' fNIRS data: the impact of birth weight and gestational age on infants' speech perception abilities.
Journal: Neurophotonics
In common: psych, ggplot2, tidyverse, developmental
[9] doi:10.1093/cercor/bhag077 [code]
The longitudinal development of intrinsic timescales in infancy and their relation to alpha brain rhythm.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: psych, ggplot2, tidyverse, developmental
[10] doi:10.1002/jcv2.70135 [code]
Alterations in resting-state functional connectivity relate to psychopathology trajectories during emerging adolescence.
Journal: JCPP advances
In common: psych, ggplot2, tidyverse, developmental

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.

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: 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.