residuals.dma function

Extracts Residuals from dma Model.