M-functions and scale dependent input-output models