From: Stefan Andreevski on
Hey Anthony,

Since you use ordinary residuals for analysis, why don't you just substract the response under consideration (the original data) from the fitted values (the AR model response). That way you don't need to call any function at all. You can also do it in the opposite direction (data - fitted_values) or just take the absolute value at the end. I don't know what is going to be the purpose of these residuals afterwards. Are you investigating normaliity?

Cheers,
Stefan