Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
**Early life adversity jointly regulates Body-Mass Index and Working memory development** **Data, code and materials** This project made use of the Early Childhood Longitudinal Study, Kindergarten Class of 2010–11 (ECLS-K:2011). To access the raw data file, that is necessary to start the pipeline, visit the study website (https://nces.ed.gov/ecls/kindergarten2011.asp) and follow the appropriate steps. **Data** We provide the pre-processed data file (Data/ecls_ind.csv), that is sufficient to reproduce fully, all analyses reported in the manuscript. **Code** All code is in R. A brief description of each script is provided below, in the recommended order of execution. 1. ECLS_preprocess.R retrieves the relevant variables from the raw ECLS dataset, and performs pre-processing, such as recoding scores and missing values. 2. ECLS_missing_ind.R performs some missing value diagnostics and creates composite scores, and some further pre-processing. 3. ECLS_missingngess.R performs the missing data analysis, to identify the missing data mechanisms. 4. ECLS_initchecks_survey.R fits and compares unconstrained growth curve models on BMI and Working memory scores to identify the relevant function form of the growth curves for the main analysis. 5. ECLS_suppl.R creates most supplementary tables and figures, such as summary statistics, histograms and bivariate correlation plots. 6. ECLS_suppl_indicators.R provides summary statistics for the adversity indicators. 7. ECLS_wm_bmi_survey.R and ECLS_wm_bmi_survey_listwise.R fit the main latent growth curve models, using FIML or listwise deletion to handle remaining missing values, respectively. 8. impl_traj.R is a supplementary script to create the model implied trajectory figure (Figure 1 of the manuscript). 9. change_score_plot.R is a supplementary script to create the WM BMI change score figure (Figure 3 of the manuscript). 10. mood_entropy.R is a helper function that is used to calculate mood entropy **Supplementary Files** Rdata files containing the data and model outputs for the main models (both FIML and listwise deletion versions).
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.