Brms function that renames variables?

I am creating a package that will use brms to run special models and then format the results for the user. I noticed that, if a variable name contains underscores, these will be stripped away in the brms output. For example, the intercept for y_1 becomes y1_Intercept. This is not a problem, but I’d like to track down the specific function(s) or rules that do this renaming so that I can correctly anticipate what the output parameters will be named. Thanks!

The function is called rename_pars.

1 Like

Thanks, I figured that was it but wanted to double-check since there are so many moving parts in the package.