View source: R/ui_predictions.R
tidy_dpp | R Documentation |
This function prepares both tidy data from a model and tidy posterior predictions from a model fit. Having those two tibbles prepared at the same time allows to merge them to ensure that observed data, predicted data and original variables other than observations are all in sync when using y and y_rep objects for bayesplot functions.
tidy_dpp(model, fit, draw = NULL, cores = NULL)
model |
A networkModel object. |
fit |
A networkModelStanfit object. |
draw |
Integer, number of draws to sample from the posterior. |
cores |
Number of cores to use for parallel calculations. Default is
|
A list with y, y_rep and vars.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.