summary.choicer_mnp: Summary for Bayesian multinomial probit model

View source: R/methods.R

summary.choicer_mnpR Documentation

Summary for Bayesian multinomial probit model

Description

Posterior summaries (mean, SD, equal-tailed credible interval) of the identified coefficient and covariance draws.

Usage

## S3 method for class 'choicer_mnp'
summary(object, prob = 0.95, ...)

Arguments

object

A choicer_mnp object.

prob

Probability mass of the equal-tailed credible interval (default 0.95).

...

Additional arguments (ignored).

Value

A summary.choicer_mnp object (list with coefficient and Sigma posterior tables plus metadata).

Examples


library(data.table)
set.seed(42)
N <- 100; J <- 3
dt <- data.table(id = rep(1:N, each = J), alt = rep(1:J, N))
dt[, `:=`(x1 = rnorm(.N), x2 = rnorm(.N))]
dt[, choice := 0L]
dt[, choice := sample(c(1L, rep(0L, J - 1))), by = id]
fit <- run_mnprobit(dt, "id", "alt", "choice", c("x1", "x2"),
                    mcmc = list(R = 300, burn = 100))
summary(fit)


choicer documentation built on Sept. 5, 2026, 1:07 a.m.