Statistical economic approach to mixed stock-flow dynamic models in macroeconomics