Hi Frank,
Does this post cover what you’re after?
This is also similar to the approach used by rstanarm