Estimate AR(p) whitener from parcel-level data
estimate_ar_whitener_parcel.RdParcel analogue of estimate_ar_whitener() that uses the parcel mean or
optional wm_parcels subset to estimate AR(p) via Yule–Walker.
Value
List with components:
- Q
Inverse Cholesky factor (whitening matrix)
- Sigma
Regularized AR covariance matrix
- phi
AR coefficients of length p
Details
The time series is formed as the mean across parcels, optionally restricted
to white-matter parcels if wm_parcels indices are provided. The series is
standardized and AR(p) coefficients are estimated via stats::ar.yw. The
implied Toeplitz covariance matrix is regularized to ensure positive
definiteness. Returns the whitener Q = chol(Sigma)^{-1} for use in the
row metric construction.
See also
estimate_ar_whitener() for voxel-level AR whitening
Other temporal metrics:
build_temporal_metric(),
build_temporal_metric_parcel(),
estimate_ar_whitener(),
make_frame_weights(),
make_temporal_penalty()
Examples
# \donttest{
# Estimate AR(1) whitener using WM parcels
arw <- estimate_ar_whitener_parcel(cnv_run, wm_parcels = c(1,2,3), p = 1)
#> Error: object 'cnv_run' not found
# }