
Plot a Bayesian (brms) indifference-point discounting model
Source:R/dd-plot.R
plot.beezdiscounting_brms.RdVisualize a fitted fit_dd_brms() model. type = "population" (default)
draws the posterior-median discount curve with a credible band for the
population conditional mean (random effects set to zero – a credible band,
not a posterior-predictive band) over the observed (boundary-squeezed)
indifference points; type = "individual" adds per-subject median curves;
type = "parameters" shows the posterior subject-k caterpillar;
type = "resid" plots standardized residuals against fitted values.
Arguments
- x
A
beezdiscounting_brmsobject.- type
One of
"population","individual","parameters","resid".- 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
Overlay the observed indifference points.
- ...
Unused.
Value
A ggplot2::ggplot object.