View source: R/hb_diagnostics.R
| traceplot.choicer_hb | R Documentation |
Overlaid per-chain traceplots (base graphics, no new dependency) for a
choicer_hmnl / choicer_hmnp fit's population coefficients (b), delta
mean-function coefficients (theta), alternative-effect variance
(sigma_d2), and, opt-in, a representative subset of the (potentially
~200-column) alternative effects (delta).
## S3 method for class 'choicer_hb'
traceplot(object, block = c("b", "theta", "sigma_d2"), which = NULL, ...)
object |
A |
block |
Character vector, any non-empty subset of |
which |
Only consulted when |
... |
Additional arguments (ignored). |
object, invisibly.
sim <- simulate_hmnl_data(N = 60, T = 2, J = 4, seed = 1)
fit <- suppressWarnings(run_hmnlogit(sim$data, "task", "alt", "choice", c("x1", "x2"),
person_col = "pid",
mcmc = list(R = 300, burn = 100), chains = 2))
traceplot(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.