Draws the population-level calibration curve, P(TP) against the score,
for n_draws draws of a Bayesian calibration model, without the
species and site effects. With a model from
prior_predictive_calibration() it shows what the prior implies on the
probability scale (a prior predictive check); with a fitted model, the
uncertainty of the curve. Needs the 'ggplot2' package.
Arguments
- fit
Model returned by
fit_calibration()withengine = "brms"or byprior_predictive_calibration().- n_draws
Number of curves.
- p_min
Threshold drawn as a dashed line.
- seed
Seed of the choice of draws. The global random number generator is left as it was.