# Create compatibility interface
compat_funcs <- compat
# Example: Create whitening plan from AR coefficients
phi <- c(0.3, 0.1) # AR(2) coefficients
plan <- compat_funcs$plan_from_phi(phi, exact_first = TRUE)
# Example: Compute whiteness score
resid <- matrix(rnorm(100 * 10), 100, 10)
score <- compat_funcs$whiteness_score(resid)
Run the code above in your browser using DataLab