Skip to content

check_predictions() for Bayesian models should use our own prediction/plotting capabilities #897

@DominiqueMakowski

Description

@DominiqueMakowski

Somewhat old issue (#477, #706)

Instead of relying on bayesplot:

if (inherits(model, "brmsfit")) {
out <- as.data.frame(
bayesplot::pp_check(model, type = pp_type, ndraws = iterations, ...)$data
)
} else {
out <- as.data.frame(
bayesplot::pp_check(model, plotfun = pp_type, nreps = iterations, ...)$data
)
}

We could call modelbased::estimate_prediction(model_priors) and plot that using the same machinery as we do for other models

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions