Skip to content
Prev 2138 / 15274 Next

acf confidence intervals in ARMA

Peter Carl wrote:
The ci.type of "white" uses a simple volatility model un the acf series 
to calculate the confidence intervals.  The "ma" or correlation model 
uses the volatility of the correlation of the lags of series to 
calculate the confidence intervals.

     with.ci <- ci > 0 && x$type != "covariance"
     with.ci.ma <- with.ci && ci.type == "ma" && x$type == "correlation"
     if(with.ci.ma && x$lag[1,1,1] != 0) {
         warning("can use ci.type=\"ma\" only if first lag is 0")
         with.ci.ma <- FALSE
     }
     clim0 <- if (with.ci) qnorm((1 + ci)/2)/sqrt(x$n.used) else c(0, 0)

Regards,

   - Brian