tidy can be used on an object produced by
to create a data frame with a column for the model name and
the posterior predictive distribution values.
An object from
A single integer for sampling from the posterior.
Not currently used
Note that this posterior only reflects the variability of the groups (i.e. the fixed effects). This helps answer the question of which model is best for this data set. If does not answer the question of which model would be best on a new resample of the data (which would have greater variability).
A data frame with the additional class
1 2 3 4 5 6 7 8 9 10 11 12
# Example objects from the "Getting Started" vignette at # https://topepo.github.io/tidyposterior/articles/Getting_Started.html # File for pre-run model is at ex_dat <- "https://bit.ly/2OJdvl1" # load(load(url(ex_dat)) # roc_model # posterior_values <- tidy(roc_model) # head(posterior_values) # class(posterior_values)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.