A comparison of graphical models and structural equation models for the analysis of longitudinal survey data