Estimate residual autocorrelation for prewhitening
pw_estimate(resids, ar_order, aic = FALSE)
Estimated AR coefficients and residual variance at every vertex
Estimated residuals
Order of the AR model used to prewhiten the data at each location.
If !aic
(default), the order will be exactly ar_order
. If aic
,
the order will be between zero and ar_order
, as determined by the AIC.