From: Anthony on
Hey Stefan,

Yes I am investigating normality in the residuals after I fit the model. I'm just not sure how to access fitted values from the AR model using the ar function.

Thanks
Anthony



"Stefan Andreevski" <standreevski(a)gmail.com> wrote in message <i1k6mo$b0g$1(a)fred.mathworks.com>...
> 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