| coef.choicer_hb | R Documentation |
Extract posterior means from a hierarchical Bayes fit
## S3 method for class 'choicer_hb'
coef(object, component = c("beta", "theta", "delta", "xi"), ...)
object |
A |
component |
Which block to return: |
... |
Additional arguments (ignored). |
Named numeric vector of posterior means.
sim <- simulate_hmnl_data(N = 50, T = 2, J = 3, seed = 42)
fit <- suppressWarnings(run_hmnlogit(sim$data, "task", "alt", "choice", c("x1", "x2"),
person_col = "pid",
mcmc = list(R = 300, burn = 100)))
coef(fit)
coef(fit, component = "delta")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.