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