[R] ACF values with confidence limits + Plot Extaction

Michael Dewey lists at dewey.myzen.co.uk
Sun Mar 6 11:09:21 CET 2016


According to the documentation acf returns what you want. It also says 
that it returns it invisibly if plot = TRUE which I imagine is what you 
are doing.

So try

res <- acf(insert_parameters_here, plot = FALSE)

and then look at res


On 06/03/2016 07:40, Preetam Pal wrote:
> Hi R-users,
>
> I have a time series of residuals and I want to get the ACF
> (autocorrelation) values till lag = 12, along with the 12 upper/lower
> confidence limits. I understand that acf(residual) would give me the plot,
> but I will also need the actual values as an array etc. Plus, I'll have to
> extract the plot from R as well. Is there a way to achieve these two?
>
> Appreciate your help.
>
> Regards,
> Preetam
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Michael
http://www.dewey.myzen.co.uk/home.html



More information about the R-help mailing list