Dynamic Generalized Structual Equation Models