residuals.earth function

Residuals for an earth model