simresiduals function

Simulate Residuals