| coef.RprobitB_fit | R Documentation |
Returns posterior means or medians for population parameters or individual random coefficients.
## S3 method for class 'RprobitB_fit'
coef(
object,
type = c("mean", "median"),
level = c("population", "individual"),
...
)
object |
[ |
type |
[
|
level |
[
|
... |
Currently not used. |
For level = "population", a named numeric vector with one value per
global posterior variable that is not fixed by the normalization or the model
structure. For level = "individual", a numeric matrix with deciders in rows
and random effects in columns. Log-normal coefficients remain on their latent
normal scale.
set.seed(1)
model <- fit(
choice ~ x | 0,
random_effects = "x",
dgp_parameters = list(beta = c(x = 1), Omega = matrix(0.5)),
chains = 1,
save_individual_draws = TRUE
)
coef(model)
head(coef(model, level = "individual"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.