Formulation and estimation of dynamic models using panel data