
Plot a Bayesian (brms) choice-based discounting model
Source:R/dd-plot.R
plot.beezdiscounting_choice_brms.RdVisualize a fitted fit_dd_choice_brms() model. type = "population"
(default) draws the posterior implied discount curve with a credible band;
type = "individual" adds per-subject (posterior-median) curves;
type = "parameters" shows the posterior subject-k caterpillar; and
type = "calibration" plots observed choice proportion against fitted
P(choose LL), binned by fitted probability.
Arguments
- x
A
beezdiscounting_choice_brmsobject.- type
One of
"population","individual","calibration","parameters".- ids
Optional subset of subject ids for
type = "individual".- at
Optional named list conditioning the population curve on factor levels / covariate values.
- n_points
Number of delay points in the curve grid.
- x_trans
Delay-axis scale:
"log10"(default) or"linear".- show_observed
Unused for the implied discount curve.
- ...
Unused.
Value
A ggplot2::ggplot object.