I'm new to both stan
and brms
, and having trouble extracting posterior predictive distributions. Let's say I have a simple logistic regression
fit = brm(y ~ x, family="bernoulli", data=df.training)
where y
is binary and x
continuous. For test data (or even the training data), I thought I could now get hold of the predictive distribution for the bernoulli probability p
, by altering probs
in
predict(fit, df.test, probs=seq(0, 1, 0.1))
However, while the output from this command gives me estimates that are continuous in the range [0,1]
(this makes sense), the confidence interval values seem to be binary (this does not make sense to me)... How do I get the entire posterior predictive distribution for p
?
posterior_predict
function. – Successfulposterior_linpred(transform=TRUE)
actually did what I want... I guess this is only an issue for models where the observables are on a different scale than the actual response variable. – Paripinnatepp_check
function that makes some pretty plots. – Losel