Supplemental Material for Causal Relationships in Longitudinal Observational Data: An Integrative Modeling Approach

Psychological Methods · 2024

Causal Relationships in Longitudinal Observational Data: An Integrative Modelling Approach".Here, we report the outline of the simulated scenarios used to test the causal discovery properties of the integrative approach alongside findings of conventional multiple regression.All codes, including the complete simulations scripts and the application to the Millenium Cohort Study, are available at osf.io/pmw6c/.The algorithm is specified in the function bellow and follow the steps:1 -train a model in part of the sample using the XGBoost algorithm 2 -use the model to predict the outcome for each individual in the remaining of the sample (a cross-validation procedure has to be added when analyzing empirical data) 3 -calculate the prediction errors for each individual prediction defined as the absolute difference between predicted and observed scores gcxboost VECTOR2 lD_org))/R return(p) }Then, as implemented in the main code for each simulated scenario: 4 -Perform steps 1-3 with the whole set of predictors (X) 5 -Perform steps 1-3 with the whole set of predictors except one (X-i) 6 -Use a non-parametric bootstrap to hypothesis testing (Alternative hypothesis: Prediction error of X>X-i)

Read the paper · More papers on PaperTik