Dear community,

I'm doing running the ac and pac command on data that I've simulated.
I'm able to save the magnitud of each lag calculated by the ac and pac function.
I would like to know how to calculate/get and save the confidence interval (for 95% confidence level) for each lag (as you can see in the ac/pac plot, there is always a confidence interval that changes through the number of lags).

If you have any idea how to do this, I would really appreciate it.