Constrain output between 0 and 10

Hi, I am using brms to fit the model below. I am looking for a way to constrain the output between 0 and 10. Is this possible in brms? Or should I tweak the stan code? Suggestions to do that are more than welcome.

bprior <- prior(normal(5,2), class = Intercept) + prior(cauchy(0,2), class = sigma)
fit <- brm(Y~ 1),data = df2, family = gaussian(), prior = bprior,chains=2, iter = 1000)

  • Operating System: Windows 10
  • brms Version: 2.10

see ?resp_trunc

If your data is bounded between 0 and 10, you could transform it by dividing by 10 and fit a Beta distribution.