Description Usage Arguments Value
Given data and a prior distribution, this function gives back samples from the posterior distribution.
1 | get_samples(df, prior, n_iter = 2500)
|
df |
Data frame containing the data |
prior |
A list of prior parameters. |
n_iter |
Number of iterations in MCMC. |
d_star |
A vector of reference levels. Length 2. |
A list, containing samples from the posterior distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.