cor_arr models autocorrelation of the response that is basically r1*lag_wy in your case, but not the autocorrelation of the predictor variable. Actually, cor_arr can be equivalently expressed as part of the predictor design matrix, so recently I deprecated cor_arr, because it is not really needed within the brms framework.
To express your model in brms, you can try the following model
bform ← bf(
wy ~ r * lag_wy + b * (igdp_log - r * lag_igdp_log),
r + b ~ 1, nl = TRUE
)
brm(bform, …)
I haven’t tested it myself but in the worst case, it is a step in the right direction ;-)
I don’t know if it is possible, but I would like to only adjust the standard errors or uncertainty of the estimates (coefficient posterior distribution).
Filter variables to remove correlation just change the precision of estimates, not the estimate or coefficient. I am just trying to figure out how to do something similar but using brms and the autocor feature.
I understand. The thing is that by “filtering out” (i.e. modeling) the autocorrelation, you effectively change your generative model. This in turn may affect all your other parameters in an a-priori unknown way. Thus, I don’t think you goal is generally possible or sensible.