Howdy! Before addressing your question, I want to point out that uniform priors with hard upper and lower boundaries like those you specified for the a
, b
, and c
parameters are generally not recommended. You might need some sort of bound, for example, if the parameter can only be positive, but in general it is best to set priors that don’t have these hard boundaries. The prior is a piece of information in your model - here, you are saying that parameter a
has equal probability of being any value between 10 and 8,000, but it has zero probability of being 9.99999999 or 8,000.00000001. That kind of information seems highly unrealistic for most scenarios. Since you have decided on these boundaries, that tells me that you do know something about the parameters, unless the boundaries are completely arbitrary (in which case you likely would not have chosen them). Since you know something about the parameters, then it would be best to reflect this in some sort of distribution that places more probability density around the region that is more probable with tails that stretch into areas of low probability. For example, maybe you know that a
should be somewhere around 4,000 but you think it could reasonably be between 10 and 8000. Then you might put a normal(4000, 2000)
prior on it (and if it can’t be less than zero, then you add the lower bound of zero). One really revealing way to view the implications of your priors is by doing prior predictive checks. This can be done in brms by running your model with the sample_prior = "only"
option, which will ignore the likelihood. You can then use the various pp_check()
commands and options to view the implications of your prior on the scale of the outcome variable. I think that you will see that the information from your uniform priors imply some rather strange things about the model.
To answer your question - you can do this graphically with the conditional_effects()
command in brms (see the documentation for extensive details and options, particularly as regards your group-level effects). You can also do it yourself manually by creating a data frame of the values of \gamma and TS
that you want to make predictions on and either using the fitted()
or the predict()
functions in brms, with the appropriate re_formula =
options, to obtain the credible intervals for \tau in the (\gamma, \tau) plane using the a
, b
, and c
parameters from your model. See the documentation for fitted()
and predict()
to understand the difference between them, so that you can decide which it is that you are looking for. Based on your question it sounds like you are wanting fitted()
.
I hope that helps!