residuals function

Obtain residuals of a component model fit