confint.RprobitB_fit: Compute posterior credible intervals

View source: R/posterior.R

confint.RprobitB_fitR Documentation

Compute posterior credible intervals

Description

Computes equal-tailed posterior intervals for selected model variables.

Usage

## S3 method for class 'RprobitB_fit'
confint(object, parm = NULL, level = 0.95, ...)

Arguments

object

[RprobitB_fit]
Fitted choice model.

parm

[character() | NULL]
Variables to include. NULL includes every population-level posterior variable that is not fixed by the normalization or the model structure. Individual coefficients can be selected by their individual[effect,decider] names.

level

[numeric(1)]
Probability of the equal-tailed credible intervals.

...

Currently not used.

Details

The returned intervals are credible intervals, not confidence intervals. They are reported through stats::confint() because it is the standard way to ask a fitted model for interval estimates.

Value

A numeric matrix with one row per selected variable and columns for the lower and upper credible limits.

Examples

set.seed(1)
model <- fit(
  choice ~ x | 0, dgp_parameters = list(beta = c(x = 1)), chains = 1
)
confint(model)

RprobitB documentation built on Sept. 20, 2026, 9:07 a.m.