Description Usage Arguments Value
View source: R/prior_post_values.r
This functions extract the posterior distribution values from a brmsfit-object and simulates the prior distribution values (mean and standard deviation of priors need to be provided). This function is still very much in development and is meant to interact with prior_post_plot
. Use at your own risk!
1 2 3 4 5 6 7 8 | prior_post_values(
object,
var_names = NULL,
post_effects = NULL,
prior_means = NULL,
prior_sd = NULL,
n_sim = 10000
)
|
object |
An object of class |
var_names |
Optional a vector that includes new names for the effects (variables) that should be extracted. |
post_effects |
Which effect should be extracted? |
prior_means |
What are means of the prior distributions (needs to be in the same order as the post_effects)? |
n_sim |
How many values should be simulated for the prior distributions (at best, this number is close to the effective sample size) |
A tibble.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.