Brms: input scaling clarification

Hi,
sorry for not getting to you earlier.

The transformation is described under “Parameterization of the population-level intercept” at the docs for brmsformula

That is IMHO correct, but note that it centers only the predictors, not the response data.

Note that centering the design matrix (except for intercept) does NOT change the values of any model coefficients except for the intercept - the coefficients for non-intercept predictors represent change in prediction per unit change in the predictor and thus are invariant to any shifts of the predictor values.

The b_Intercept reported in the model is already shifted back, so it has to be interpreted as if centering did not take place (you can also extract the Intercept parameter which is what the model actually works with)

Also note that for most tasks, you can use posterior_predict/posterior_linpred / posterior_epred that handle a lot of this stuff for you.

The normalize option is completely unrelated to data pre-processing (it selects whether normalized or unormalized density functions are used e.g. normal_lpdf vs normal_lupdf).

Best of luck wtih your model!

1 Like