I’m trying to plot a prior and posterior next to each other. I’ve seen so many examples in which this is done using plot(hypothesis(fit, “hypothesis”)). When I do so, the posterior is being plotted but the prior is not even though I use sample_prior = TRUE when fitting my model. Could this be because I’m using default priors at the moment? Or am I doing something else wrong?
Is student_t(3, 3, 10) a flat prior? Because that’s the prior I get when using prior_summary. I’ve also tried this with different priors though and it never worked.
I am sorry, I should have read more closely. For technical reasons, we cannot sample from the prior of the Intercept when sample_prior = TRUE and it is actually good that we cannot because the prior applies to the temporary intercept not the actual one (see ?set_prior).
To allow sampling from the prior of the intercept as well, replace 1 by 0 + Intercept, that is, go for